code: protected void check(Collection decls)
          throws FatalCompileTimeException
      {
          ArrayList classDecls = new ArrayList();
          HashSet classNames = new HashSet();
          for (Iterator i = decls.iterator(); i.hasNext();) {
              Declaration decl = (Declaration) i.next();
              if (decl instanceof ClassDeclaration) {
                  ClassDeclaration jclass = (ClassDeclaration) decl;
                  if (!classNames.contains(jclass.getQualifiedName())) {
                      classNames.add(jclass.getQualifiedName());
                      classDecls.add(jclass);
                  }
              }
              else if (decl instanceof MethodDeclaration) {
                  //
                  // Declarative validation annotations on a method. Include as a
                  // possible form bean that does not have the @FormBean annotation.
                  //
                  MethodDeclaration methodDecl = (MethodDeclaration) decl;
                  TypeDeclaration type = methodDecl.getDeclaringType();
                  if (type instanceof ClassDeclaration) {
                      ClassDeclaration jclass = (ClassDeclaration) type;
                      if (!classNames.contains(jclass.getQualifiedName())) {
                          classNames.add(jclass.getQualifiedName());
                          classDecls.add(jclass);
                      }
                  }
              }
          }
  
          super.check(classDecls);
      }
docs: /*
  Run the checkers on classes including form beans with declarative
  validation annotations. This override will find class declarations
  for classes that may only have method level declarative validation
  annotations.