docs: public ResourceList getAllResources() {
          if (allWhitelistedResourcesCached == null) {
              // Index Resource objects by path
              final ResourceList whitelistedResourcesList = new ResourceList();
              for (final ClasspathElement classpathElt : classpathOrder) {
                  if (classpathElt.whitelistedResources != null) {
                      whitelistedResourcesList.addAll(classpathElt.whitelistedResources);
                  }
              }
              // Set atomically for thread safety
              allWhitelistedResourcesCached = whitelistedResourcesList;
          }
          return allWhitelistedResourcesCached;
      }