void (@NotNull Component component, @Nullable MouseEvent event) { IdeFrame frame = UIUtil.getParentOfType(IdeFrame.class, component); Project project = frame != null ? frame.getProject() : null; closeAllInspectorWindows(); if (event != null) { new UiInspector(project).processMouseEvent(project, event); } else { new UiInspector(project).showInspector(project, component); } }