private boolean isPublicClass(DeclaredType type) {
    Element element = type.asElement();

    return element.getModifiers().contains(javax.lang.model.element.Modifier.PUBLIC);
  }
private boolean isPublicClass(DeclaredType type) {
    Element element = type.asElement();

    return element.getModifiers().contains(javax.lang.model.element.Modifier.PUBLIC);
  }
private boolean isPublicClass ( DeclaredType type ) { Element element = type . asElement ( ) ; return element . getModifiers ( ) . contains ( javax . lang . model . element . Modifier . PUBLIC ) ; }
Checks if a class is public
Checks if a class is public