void () { super.initTree(); TreeSpeedSearch.installOn(myTree, true, treePath -> { MasterDetailsComponent.MyNode obj = (MyNode)treePath.getLastPathComponent(); return obj == null ? null : obj.getDisplayName(); }); StatusText emptyText = myTree.getEmptyText(); emptyText.setText(CopyrightBundle.message("copyright.profiles.empty")); emptyText.appendSecondaryText(CopyrightBundle.message("copyright.profiles.add.profile"), SimpleTextAttributes.LINK_ATTRIBUTES, __ -> doAddProfile()); String shortcutText = KeymapUtil.getFirstKeyboardShortcutText(CommonActionsPanel.getCommonShortcut(CommonActionsPanel.Buttons.ADD)); if (!shortcutText.isEmpty()) { emptyText.appendSecondaryText(" (" + shortcutText + ")", StatusText.DEFAULT_ATTRIBUTES, null); } }