void (@NotNull Project project, @NotNull final ProblemDescriptor descriptor) { PsiElement element = descriptor.getPsiElement(); PsiElement parent = element.getParent(); if (parent instanceof GrTypeDefinition aClass && ((GrTypeDefinition)parent).getNameIdentifierGroovy() == element) { final List<ClashingMethod> clashingMethods = collectClassingMethods(aClass); for (ClashingMethod method : clashingMethods) { PsiMethod traitMethod = method.getSignature().getMethod(); LOG.assertTrue(traitMethod instanceof GrTraitMethod); OverrideImplementUtil.overrideOrImplement(aClass, traitMethod); } } }