@NotNull
 protected List<AbstractTestProxy> getFailedTests(@NotNull Project project) {
   TestFrameworkRunningModel model = getModel();
   if (model == null) return Collections.emptyList();
   //noinspection unchecked
   return getFilter(project, model.getProperties().getScope())
       .select(model.getRoot().getAllTests());
 }
  private boolean isActive(AnActionEvent e) {
    Project project = e.getProject();
    if (project == null) {
      return false;
    }

    TestFrameworkRunningModel model = getModel();
    if (model == null || model.getRoot() == null) {
      return false;
    }
    Filter filter = getFailuresFilter();
    for (AbstractTestProxy test : model.getRoot().getAllTests()) {
      //noinspection unchecked
      if (filter.shouldAccept(test)) {
        return true;
      }
    }
    return false;
  }