void (@NotNull final Project project, @NotNull Editor editor, @NotNull PsiFile file) { if (!EditorModificationUtil.checkModificationAllowed(editor)) return; PsiClass aClass = OverrideImplementUtil.getContextClass(project, editor, file, true); if (aClass instanceof GrTypeDefinition typeDefinition) { if (GroovyOverrideImplementExploreUtil.getMethodSignaturesToOverride(typeDefinition).isEmpty()) { HintManager.getInstance().showErrorHint(editor, JavaBundle.message("override.methods.error.no.methods")); return; } GroovyOverrideImplementUtil.chooseAndOverrideMethods(project, editor, typeDefinition); } }