docs: private boolean isShadowed(String resourceName) {
              if (persistenceHandler.isManifest() || !resourceName.endsWith(CLASS_FILE_SUFFIX)) {
                  return false;
              }
              // This synchronization is required to avoid a racing condition to the actual class loading.
              synchronized (this) {
                  String typeName = resourceName.replace('/', '.').substring(0, resourceName.length() - CLASS_FILE_SUFFIX.length());
                  if (typeDefinitions.containsKey(typeName)) {
                      return true;
                  }
                  Class<?> loadedClass = findLoadedClass(typeName);
                  return loadedClass != null && loadedClass.getClassLoader() == this;
              }
          }