public static void updateOutdatedSdk(@NotNull RemoteSdkAdditionalData data, @Nullable Project project) {
    if (!(data.getRemoteConnectionType() instanceof OutdatedCredentialsType)) {
      return;
    }
    @SuppressWarnings({"unchecked", "rawtypes"}) Pair<CredentialsType<Object>, Object> pair = ((OutdatedCredentialsType)data.getRemoteConnectionType())
      .transformToNewerType(data.connectionCredentials().getCredentials(), project);
    data.setCredentials(pair.getFirst().getCredentialsKey(), pair.getSecond());
  }
public static void updateOutdatedSdk(@NotNull RemoteSdkAdditionalData data, @Nullable Project project)