code: protected <A extends Annotation> Attribute.Compound getAttribute(Class<A> annoType) {
          String name = annoType.getName();
  
          for (Attribute.Compound anno : getAnnotationMirrors()) {
              if (name.equals(anno.type.tsym.flatName().toString()))
                  return anno;
          }
  
          return null;
      }
docs: This method is part of the javax.lang.model API, do not use this in javac code.