@Override
  protected boolean isEnabled(AnActionEvent e) {
    final ReferenceType selectedClass = DebuggerActionUtil.getSelectedClass(e);
    final InstancesProvider provider = e.getData(ClassesFilteredView.NEW_INSTANCES_PROVIDER_KEY);
    final int count = getInstancesCount(e);
    return super.isEnabled(e) && selectedClass != null && provider != null && count > 0;
  }
@Override
  protected boolean isEnabled(AnActionEvent e)