void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { PsiClass aClass = PsiTreeUtil.getParentOfType(descriptor.getPsiElement(), PsiClass.class); if (aClass != null) { final PsiElementFactory factory = JavaPsiFacade.getElementFactory(project); for (String methodText : myMethods) { final PsiMethod method = factory.createMethodFromText(methodText, aClass); PsiMethod overridden = aClass.findMethodBySignature(method, true); if (overridden != null) { OverrideImplementUtil.annotateOnOverrideImplement(method, aClass, overridden); } aClass.add(method); } } }