docs: public static Credentials copy(Credentials credentials) {
          if (credentials == null) {
              return null;
          }
          return new Credentials(credentials.login, credentials.password);
      }