@Deprecated
  public void setCustomAuth(@NotNull String key, @NotNull NonStaticAuthenticator nonStaticAuthenticator) {
    synchronized (myLock) {
      var register = CommonProxyCompatibility.registerCustomAuthenticator;
      if (register != null) {
        LOG.debug("custom auth set: " + key + ", " + nonStaticAuthenticator);
        //noinspection resource
        myCustomAuthRegistrations.put(key, register.invoke(nonStaticAuthenticator.asAuthenticator()));
      }
    }
  }
@Deprecated
  public void setCustomAuth(@NotNull String key, @NotNull NonStaticAuthenticator nonStaticAuthenticator)