docs: public static boolean isMethodVisibleInJS(ExecutableElement method) {
      return (hasAnnotation(method.getEnclosingElement(), JsType.class) && method
          .getModifiers()
          .contains(Modifier.PUBLIC)) || hasAnnotation(method, JsMethod.class);
    }