if (scalaIsOnClassPath()) actions.add(new NewFileAction("Scala File", iconByFileType, IdeUtil.SCALA_FILE_TYPE));
if (clojureIsOnClassPath()) actions.add(new NewFileAction("Clojure File", iconByFileType, IdeUtil.CLOJURE_FILE_TYPE));
actions.addAll(asList(
new NewFileAction("Text File", AllIcons.FileTypes.Text, IdeUtil.TEXT_FILE_TYPE),
new NewFolderAction("Directory", "Directory", Folder)
));
actions.addAll(asList(
new CreateRootFileAction(MAIN_SCRIPT, MAIN_SCRIPT, defaultPluginScript(), iconByFileType, IdeUtil.GROOVY_FILE_TYPE),
new CreateRootFileAction(TEST_SCRIPT, TEST_SCRIPT, defaultPluginTestScript(), iconByFileType, IdeUtil.GROOVY_FILE_TYPE)
));