docs: public boolean isAccessible(@Nonnull JavaModelElement e) {
          if (!(e instanceof JavaMethodParameterElement) && !isAccessibleByModifier(e.getDeclaringElement())) {
              return false;
          }
  
          JavaModelElement parent = e.getParent();
  
          if (e instanceof JavaTypeElement) {
              return ((JavaTypeElement) e).isInAPI() && (parent == null || _isAccessible(parent));
          } else {
              assert parent != null;
              return isAccessible(parent);
          }
      }