void (@Nullable SettingsEditorFragment<?, ?> fragment, @Nullable JComponent component) { String hint = myDefaultHint; if (fragment != null) { hint = fragment.getHint(component); } else { fragment = ContainerUtil.find(myFragments, f -> f.getEditorComponent().hasFocus()); if (fragment != null) { hint = fragment.getHint(component); } } if (fragment != null) { String text = getShortcutText(fragment); if (text != null) { hint = hint == null ? text : StringUtil.trimEnd(hint, ".") + ". " + text; } } myHintConsumer.consume(hint == null ? myDefaultHint : hint); }