code: private static boolean isKnownClassLoaderAccessibleFrom(final ClassLoader accessibleCL, final ClassLoader fromCL) {
  
          if (fromCL == null) {
              return false;
          }
  
          ClassLoader parent = fromCL;
  
          try {
  
              while (parent != null && parent != accessibleCL) {
                  parent = parent.getParent();
              }
  
              return (parent != null && parent == accessibleCL);
  
          } catch (final SecurityException se) {
              // The SecurityManager prevents us from accessing, so just ignore it
              return false;
          }
  
      }
docs: /*
  This method determines whether it is known that a this class loader is a a child of another one, or equal to it.
  The "known" part is because SecurityManager could be preventing us from knowing such information.