docs: public static List<TopLevelItemDescriptor> all(Authentication a, ItemGroup c) {
          List<TopLevelItemDescriptor> result = new ArrayList<>();
          ACL acl;
          if (c instanceof AccessControlled) {
              acl = ((AccessControlled) c).getACL();
          } else {
              // fall back to root
              acl = Jenkins.getInstance().getACL();
          }
          for (TopLevelItemDescriptor d: all()) {
              if (acl.hasCreatePermission(a, c, d) && d.isApplicableIn(c)) {
                  result.add(d);
              }
          }
          return result;
      }