void () { AnAction newProjectAction = ActionManager.getInstance().getAction(getNewProjectActionId()); newProjectAction.getTemplatePresentation().setText(ActionsBundle.actionText("NewDirectoryProject")); AnAction manageAction = ActionManager.getInstance().getAction("ManageProjectTemplates"); Notification notification = new Notification("Project Template", LangBundle.message("notification.title.template.created"), LangBundle.message("notification.content.was.successfully.created", FileUtilRt.getNameWithoutExtension(file.getFileName().toString())), NotificationType.INFORMATION); notification.addAction(newProjectAction); if (manageAction != null) { notification.addAction(manageAction); } notification.notify(getProject()); }