boolean (@NotNull Editor editor, @NotNull PsiFile file, @NotNull DataContext dataContext) { final PsiMethod selectedMethod = getSelectedMethod(editor, file); if (selectedMethod != null) { final PsiMethod[] deepestSuperMethods = selectedMethod.findDeepestSuperMethods(); return deepestSuperMethods.length > 0 || getErrorMessage(selectedMethod) == null; } return false; }