AnyRuleIssueFilter extends BaseTreeVisitor implements JavaIssueFilter { @Override public final Set<Class<? extends JavaCheck>> filteredRules() { return Collections.emptySet(); }  @Override void scanFile(JavaFileScannerContext context); @Override boolean accept(RuleKey ruleKey, AnalyzerMessage analyzerMessage); @Override final Set<Class<? extends JavaCheck>> filteredRules(); void excludeLines(Tree tree);  }
@Test void any_rule_filter_does_not_requires_rules() { assertThat(new AnyRuleIssueFilter() { }.filteredRules()).isEmpty(); }