docs: public static final <T extends Tree> Matcher<T> inSynchronized() {
      return new Matcher<T>() {
        @Override
        public boolean matches(T tree, VisitorState state) {
          SynchronizedTree synchronizedTree =
              ASTHelpers.findEnclosingNode(state.getPath(), SynchronizedTree.class);
          if (synchronizedTree != null) {
            return true;
          }
  
          MethodTree methodTree = ASTHelpers.findEnclosingNode(state.getPath(), MethodTree.class);
          return methodTree != null
              && methodTree.getModifiers().getFlags().contains(Modifier.SYNCHRONIZED);
        }
      };
    }