String () { if (PlatformUtils.isIntelliJ() || PlatformUtils.isWebStorm()) { return "NewProject"; } if (PlatformUtils.isPhpStorm()) { return "NewDirectoryProject"; } if (PlatformUtils.isGoIde()) { return "GoIdeNewProjectAction"; } throw new IllegalStateException("Provide new project action id for your IDE"); }