private @Nullable TypeHandler getCredentialsTypeHandlerToSelect() {
    String credentialsTypeName = getPropertiesComponent().getValue(getCredentialsTypePersistenceKey());
    if (credentialsTypeName != null) {
      for (Map.Entry<CredentialsType, TypeHandler> entry : myCredentialsType2Handler.entrySet()) {
        if (entry.getKey().getName().equals(credentialsTypeName)) {
          return entry.getValue();
        }
      }
    }
    Iterator<TypeHandler> iterator = myCredentialsType2Handler.values().iterator();
    if (iterator.hasNext()) {
      return iterator.next();
    }
    return null;
  }
private @Nullable TypeHandler getCredentialsTypeHandlerToSelect()