void (final String selectedValue) { if (!getAll().equals(selectedValue) && myShowAll != null) Disposer.dispose(myShowAll.getDisposable()); if (getAdd().equals(selectedValue)) { PyAddSdkDialog.show(myProject, myModule, Arrays.asList(myExistingSdks), sdk -> mySdkAddedCallback.consume(sdk)); } else if (myShowAll != null) { myShowAll.show(); } }