docs: static Jsii tryGetJsiiAnnotation(final Class<?> type, final boolean inherited) {
          Jsii[] ann;
  
          if (inherited) {
              ann = (Jsii[]) type.getAnnotationsByType(Jsii.class);
          } else {
              ann = (Jsii[]) type.getDeclaredAnnotationsByType(Jsii.class);
          }
  
          if (ann.length == 0) {
              return null;
          }
  
          return ann[0];
      }