docs: public static <T extends Tree> Matcher<T> hasModifier(final Modifier modifier) {
      return new Matcher<T>() {
        @Override
        public boolean matches(T tree, VisitorState state) {
          Symbol sym = ASTHelpers.getSymbol(tree);
          return sym != null && sym.getModifiers().contains(modifier);
        }
      };
    }