code: private static ClassLoader getShadow(ClassLoader loader) {
          return loader instanceof AppClassLoader ? new ShadowClassLoader((AppClassLoader) loader) : loader;
      }
docs: create a {@link ShadowClassLoader} for the specified loader if it is an {@link AppClassLoader}.