@Override
    public void applyFix(@NotNull Project project, @NotNull final ProblemDescriptor descriptor) {
      PsiElement element = descriptor.getPsiElement();
      PsiElement parent = element.getParent();
      if (parent instanceof GrTypeDefinition aClass && aClass.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);
        }
      }
    }
@Override
    public void applyFix(@NotNull Project project, @NotNull final ProblemDescriptor descriptor)