public boolean updateModel(@NotNull Project project, @Nullable String targetName) {
    List<JreComboBoxItem> items = new ArrayList<>();
    myRemoteTarget = false;
    TargetEnvironmentConfiguration config = TargetEnvironmentConfigurations.getEffectiveConfiguration(targetName, project);
    if (config != null) {
      myRemoteTarget = true;
      items.addAll(ContainerUtil.mapNotNull(config.getRuntimes().resolvedConfigs(),
                                            configuration -> configuration instanceof JavaLanguageRuntimeConfiguration ? new CustomJreItem(
                                              (JavaLanguageRuntimeConfiguration)configuration) : null));
      myComboBoxModel.addAll(items);
      if (!items.isEmpty()) {
        myComboBoxModel.setSelectedItem(items.get(0));
      }
      return false;
    }
    updateModel(items1 -> {
      items.addAll(items1);
      myComboBoxModel.setAll(items);
    });
    return true;
  }
public boolean updateModel(@NotNull Project project, @Nullable String targetName)