void (@NotNull Map<? super @Nls String, ? super JTree> trees, @NotNull String groupId) { BaseOnThisTypeAction baseOnThisTypeAction = createBaseOnThisAction(); JTree tree1 = createTree(true); PopupHandler.installPopupMenu(tree1, groupId, ActionPlaces.TYPE_HIERARCHY_VIEW_POPUP); baseOnThisTypeAction .registerCustomShortcutSet(ActionManager.getInstance().getAction(IdeActions.ACTION_TYPE_HIERARCHY).getShortcutSet(), tree1); trees.put(getTypeHierarchyType(), tree1); JTree tree2 = createTree(true); PopupHandler.installPopupMenu(tree2, groupId, ActionPlaces.TYPE_HIERARCHY_VIEW_POPUP); baseOnThisTypeAction .registerCustomShortcutSet(ActionManager.getInstance().getAction(IdeActions.ACTION_TYPE_HIERARCHY).getShortcutSet(), tree2); trees.put(getSupertypesHierarchyType(), tree2); JTree tree3 = createTree(true); PopupHandler.installPopupMenu(tree3, groupId, ActionPlaces.TYPE_HIERARCHY_VIEW_POPUP); baseOnThisTypeAction .registerCustomShortcutSet(ActionManager.getInstance().getAction(IdeActions.ACTION_TYPE_HIERARCHY).getShortcutSet(), tree3); trees.put(getSubtypesHierarchyType(), tree3); }