docs: public static boolean isPublic(ASTNode node) {
          Integer modifiers = null;
          // !important - Performance improvement
          if (node instanceof ClassNode) {
              modifiers = ((ClassNode) node).getModifiers();
          } else if (node instanceof FieldNode) {
              modifiers = ((FieldNode) node).getModifiers();
          }else if (node instanceof MethodNode) {
              modifiers = ((MethodNode) node).getModifiers();
          }else if (node instanceof PropertyNode) {
              modifiers = ((PropertyNode) node).getModifiers();
          } else {
              LOG.warn("isPublic node is not an expected type");
          }
          if (modifiers != null) {
              return Modifier.isPublic(modifiers);
          }
          return false;
      }