docs: private boolean shouldExcludeSourceFile(CompilationUnitTree tree) {
      Pattern excludedPattern = errorProneOptions.getExcludedPattern();
      return excludedPattern != null
          && excludedPattern.matcher(ASTHelpers.getFileName(tree)).matches();
    }