@Override
      protected void checkCommentsForTopClass(PsiClass topClass, int location, List<PsiComment> comments) {
        if (!(topClass instanceof GroovyScriptClass)) {
          super.checkCommentsForTopClass(topClass, location, comments);
          return;
        }
        final GroovyFile containingFile = (GroovyFile)topClass.getContainingFile();

        PsiElement last = containingFile.getFirstChild();
        while (last != null && !(last instanceof GrStatement)) {
          last = last.getNextSibling();
        }
        checkComments(last, location == JavaOptions.LOCATION_BEFORE_CLASS, comments);
      }
@Override
      protected void checkCommentsForTopClass(PsiClass topClass, int location, List<PsiComment> comments)