OpenTofu
OpenTofu is a fork of Terraform that is open-source, community-driven, and managed by the Linux Foundation.
IntelliJ IDEA provides coding assistance for OpenTofu files, including syntax highlighting, completion, and inspections. It also has dedicated run configurations for OpenTofu that are basically the same as for Terraform, but they use the tofu command.

Specify the OpenTofu executable path
To run OpenTofu commands from the IDE using run configurations, you need to have OpenTofu installed on your machine.
Press Ctrl+Alt+S to open settings and then select .
In most cases, IntelliJ IDEA detects the path to the OpenTofu executable automatically. If the IDE does not detect the version and path to the executable, click Detect and Test.
If OpenTofu is not installed on your machine, click Install.

If necessary, you can specify the path to OpenTofu manually in the OpenTofu executable path field.