private @Nullable ActionListener createBrowseTargetListener(@NotNull Project project, @NotNull SdkAdditionalData sdkAdditionalData,
                                                              @NotNull @NlsContexts.DialogTitle String label) {
    if (!(sdkAdditionalData instanceof TargetBasedSdkAdditionalData)) {
      return null;
    }
    var configuration = ((TargetBasedSdkAdditionalData)sdkAdditionalData).getTargetEnvironmentConfiguration();
    if (configuration != null) {
      var type = TargetEnvironmentConfigurationKt.getTargetType(configuration);
      if (type instanceof BrowsableTargetEnvironmentType) {
        return ((BrowsableTargetEnvironmentType)type).createBrowser(project, label, TextComponentAccessor.TEXT_FIELD_WHOLE_TEXT,
                                                                    myInterpreterPathTextField.getTextField(), () -> configuration, new TargetBrowserHints(true, null));
      }
    }
    return null;
  }
private @Nullable ActionListener createBrowseTargetListener(@NotNull Project project, @NotNull SdkAdditionalData sdkAdditionalData,
                                                              @NotNull @NlsContexts.DialogTitle String label)