shillelagh-processor/src/main/java/shillelagh/internal/ShillelaghProcessor.java
private boolean checkForSuperType(Element element, Class type) {
    List<? extends TypeMirror> superTypes = typeUtils.directSupertypes(element.asType());
    for (TypeMirror superType : superTypes) {
      if (superType.toString().equals(type.getName())) {
        return true;
      }
    }
    return false;
  }
private boolean checkForSuperType(Element element, Class type) {
    List<? extends TypeMirror> superTypes = typeUtils.directSupertypes(element.asType());
    for (TypeMirror superType : superTypes) {
      if (superType.toString().equals(type.getName())) {
        return true;
      }
    }
    return false;
  }
private boolean checkForSuperType ( Element element , Class type ) { List < ? extends TypeMirror > superTypes = typeUtils . directSupertypes ( element . asType ( ) ) ; for ( TypeMirror superType : superTypes ) { if ( superType . toString ( ) . equals ( type . getName ( ) ) ) { return true ; } } return false ; }
Checks for a supertype returns true if element has a supertype
Checks for a supertype returns true if element has a supertype