@Override
  public boolean isSelected(@NotNull AnActionEvent e) {
    ReferenceType selectedClass = DebuggerActionUtil.getSelectedClass(e);
    final Project project = e.getProject();
    if (project != null && selectedClass != null && !project.isDisposed()) {
      InstancesTracker tracker = InstancesTracker.getInstance(project);
      return tracker.isTracked(selectedClass.name());
    }

    return false;
  }
@Override
  public boolean isSelected(@NotNull AnActionEvent e)