boolean (@NotNull Project project) { if (RunToolbarSlotManager.Companion.getInstance(project).getActive$intellij_platform_execution_impl()) { // Run Widget shows up only in Rider. In other IDEs it's a secret feature backed by the "ide.run.widget" Registry key. // The 'Run Current File' feature doesn't look great together with the Run Widget. return false; } if (PlatformUtils.isIntelliJ()) return true; if (PlatformUtils.isPhpStorm()) return true; if (PlatformUtils.isWebStorm()) return true; if (PlatformUtils.isRubyMine()) return true; if (PlatformUtils.isPyCharmPro()) return true; if (PlatformUtils.isPyCharmCommunity()) return true; if (PlatformUtils.isDataGrip()) return true; return Registry.is("run.current.file.item.in.run.configurations.combobox"); }