private void filterByCategory(Class<?> category) {
    if (category != null) {
      try {
        final Categories.CategoryFilter categoryFilter = Categories.CategoryFilter.include(category);
        filter(categoryFilter);
      } catch (NoTestsRemainException e) {
        throw new RuntimeException(e);
      }
    }
  }
private void filterByCategory(Class<?> category)