DataContext () { Component component = null; if (Registry.is("actionSystem.getContextByRecentMouseEvent", false)) { component = IdeUiService.getInstance().getComponentFromRecentMouseEvent(); } return getDataContext(component != null ? component : getFocusedComponent()); }