List<Icon> (@NotNull Collection<? extends SelectInTarget> targets, @NotNull SelectInContext selectInContext) { ToolWindowManager toolWindowManager = ToolWindowManager.getInstance(selectInContext.getProject()); List<Icon> list = new ArrayList<>(); for (SelectInTarget target : targets) { String id = target.getMinorViewId() == null ? target.getToolWindowId() : null; ToolWindow toolWindow = id == null ? null : toolWindowManager.getToolWindow(id); Icon icon = toolWindow != null ? toolWindow.getIcon() : EmptyIcon.ICON_13; list.add(icon); } return list; }