void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { final Editor editor = FileEditorManager.getInstance(project).getSelectedTextEditor(); if (editor == null) { return; } final PsiElement element = descriptor.getPsiElement(); new GenerateEqualsHandler().invoke(project, editor, element.getContainingFile()); }