private static void checkCyclicInheritance(AnnotationHolder holder,
                                             @NotNull GrTypeDefinition typeDefinition) {
    final PsiClass psiClass = InheritanceUtil.getCircularClass(typeDefinition);
    if (psiClass != null) {
      String qname = psiClass.getQualifiedName();
      assert qname != null;
      holder.newAnnotation(HighlightSeverity.ERROR, GroovyBundle.message("cyclic.inheritance.involving.0", qname)).range(GrHighlightUtil.getClassHeaderTextRange(typeDefinition)).create();
    }
  }
private static void checkCyclicInheritance(AnnotationHolder holder,
                                             @NotNull GrTypeDefinition typeDefinition)