@Override
  public boolean equals(Object obj) {
    if (obj instanceof RemoteConnectionCredentialsWrapper w) {
      try {
        var credentials = getCredentials();
        var counterCredentials = w.getCredentials();
        return credentials.equals(counterCredentials);
      }
      catch (IllegalStateException e) {
        return false;
      }
    }
    return false;
  }
@Override
  public boolean equals(Object obj)