void () { final String toConfigure = Objects.requireNonNull(getSelectedType()).getSeverity(null).myName; if (myCloseDialogWhenSettingsShown) { doOKAction(); } myOptionsList.clearSelection(); final DataContext dataContext = DataManager.getInstance().getDataContext(myPanel); selectOrEditColor(dataContext, toConfigure, InspectionColorSettingsPage.class); }