void (Project project, MouseEvent me) { me.consume(); Component component = me.getComponent(); if (component instanceof Container) { component = UIUtil.getDeepestComponentAt(component, me.getX(), me.getY()); } else if (component == null) { component = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner(); } if (component != null) { if (component instanceof JComponent jComp) { jComp.putClientProperty(CLICK_INFO, getClickInfoNode(me, jComp)); jComp.putClientProperty(CLICK_INFO_POINT, me.getPoint()); } showInspector(project, component); } }