private static void checkConstructorOfImmutableClass(AnnotationHolder holder, GrMethod method) {
    if (!method.isConstructor()) return;

    PsiClass aClass = method.getContainingClass();
    if (aClass == null) return;

    if (!GrImmutableUtils.hasImmutableAnnotation(aClass)) return;

    holder.newAnnotation(HighlightSeverity.ERROR, GroovyBundle.message("explicit.constructors.are.not.allowed.in.immutable.class")).range(method.getNameIdentifierGroovy()).create();
  }
private static void checkConstructorOfImmutableClass(AnnotationHolder holder, GrMethod method)