void (String targetName) { SettingsEditorFragment<Settings, ?> targetPathFragment = ContainerUtil.find(getFragments(), fragment -> TargetPathFragment.ID.equals(fragment.getId())); if (targetPathFragment != null) { targetPathFragment.setSelected(targetName != null); } }