private static LocalQuickFix @NotNull [] generateMapConstructorFix(@NotNull PsiElement resolvedElement,
                                                                       @NotNull PsiClass containingClass,
                                                                       @NotNull PsiAnnotation annotation) {
      if (annotation instanceof LightElement) {
        return LocalQuickFix.EMPTY_ARRAY;
      }
      if (!(containingClass instanceof GrTypeDefinition)) {
        return LocalQuickFix.EMPTY_ARRAY;
      }
      if (!(resolvedElement instanceof PsiMember)) {
        return LocalQuickFix.EMPTY_ARRAY;
      }
      if (((PsiMember)resolvedElement).getContainingClass() != containingClass && resolvedElement instanceof PsiMethod) {
        return LocalQuickFix.EMPTY_ARRAY;
      }
      if (annotation.hasAttribute(TupleConstructorAttributes.INCLUDES) || annotation.hasAttribute(TupleConstructorAttributes.EXCLUDES)) {
        return LocalQuickFix.EMPTY_ARRAY;
      }
      return new LocalQuickFix[]{GroovyQuickFixFactory.getInstance().createMapConstructorFix()};
    }
private static LocalQuickFix @NotNull [] generateMapConstructorFix(@NotNull PsiElement resolvedElement,
                                                                       @NotNull PsiClass containingClass,
                                                                       @NotNull PsiAnnotation annotation)