private void doConfigure() {
    switch (myButtonEnumModel.getSelected()) {
      case DOWNLOAD -> {
        final LibraryDownloadSettings oldDownloadSettings = mySettings.getDownloadSettings();
        LOG.assertTrue(oldDownloadSettings != null);
        List<? extends FrameworkLibraryVersion> versions = mySettings.getCompatibleVersions();
        if (versions.isEmpty()) {
          LOG.error("No compatible version for " + mySettings.getLibraryDescription() + " with filter " + mySettings.getVersionFilter());
        }
        final LibraryDownloadSettings newDownloadSettings = DownloadingOptionsDialog.showDialog(myPanel, oldDownloadSettings,
                                                                                                versions, true);
        if (newDownloadSettings != null) {
          mySettings.setDownloadSettings(newDownloadSettings);
        }
      }
      case USE_LIBRARY -> {
        final Object item = myExistingLibraryComboBox.getSelectedItem();
        if (item instanceof LibraryEditor) {
          EditLibraryDialog dialog = new EditLibraryDialog(myPanel, mySettings, (LibraryEditor)item);
          dialog.show();
          if (item instanceof ExistingLibraryEditor) {
            WriteAction.run(() -> ((ExistingLibraryEditor)item).commit());
          }
        }
      }
      case USE_FROM_PROVIDER, SETUP_LIBRARY_LATER -> {
      }
    }
    updateState();
  }
private void doConfigure()