code: @SuppressWarnings("unchecked")
    public static <T extends LogEventListener> T removeListener(String name) {
      Map<String, LogEventListener> listeners = SelenideLogger.listeners.get();
      return listeners == null ? null : (T) listeners.remove(name);
    }
docs: Remove listener (from the current thread).
  @param name unique name of listener added by method {@link #addListener(String, LogEventListener)}
  @param <T> class of listener to be returned
  @return the listener being removed