void (@NotNull AnActionEvent e) { chooseAndPerform(editor, frameworks, framework -> { final FileTemplateDescriptor descriptor = methodKind.getFileTemplateDescriptor(framework); if (descriptor != null) { final String fileName = descriptor.getFileName(); AllFileTemplatesConfigurable.editCodeTemplate(FileUtilRt.getNameWithoutExtension(fileName), project); } else { String message = JavaBundle.message( "generate.test.support.method.error.no.template.found.for.framework", framework.getName(), BaseGenerateTestSupportMethodAction.this.getTemplatePresentation().getText()); HintManager.getInstance().showErrorHint(editor, message); } }); }