void (AnActionEvent e) { final ReferenceType selectedClass = DebuggerActionUtil.getSelectedClass(e); final InstancesProvider provider = e.getData(ClassesFilteredView.NEW_INSTANCES_PROVIDER_KEY); final XDebugSession session = DebuggerUIUtil.getSession(e); if (selectedClass != null && provider != null && session != null) { new InstancesWindow(session, provider, selectedClass).show(); } }