int (AnActionEvent e) { ClassesTable.ReferenceCountProvider countProvider = e.getData(ClassesTable.REF_COUNT_PROVIDER_KEY); TypeInfo selectedClass = DebuggerActionUtil.getSelectedTypeInfo(e); if (countProvider == null || selectedClass == null) { return -1; } return countProvider.getNewInstancesCount(selectedClass); }