code: @Override
    public void removeHandler(Handler handler)
    {
      synchronized (this) {
        ClassLoader loader = Thread.currentThread().getContextClassLoader();
        
        if (loader == null) {
          loader = _systemClassLoader;
        }
  
        for (int i = _loaders.size() - 1; i >= 0; i--) {
          WeakReference<ClassLoader> ref = _loaders.get(i);
          ClassLoader refLoader = ref.get();
  
          if (refLoader == null) {
            _loaders.remove(i);
          }
  
          if (isParentLoader(loader, refLoader)) {
            removeHandler(handler, refLoader);
          }
        }
  
        HandlerEntry ownHandlers = _ownHandlers.get();
        if (ownHandlers != null)
          ownHandlers.removeHandler(handler);
      }
    }
docs: Removes a handler.