code: public static Matcher<MethodTree> methodWithClassAndName(
        final String className, final String methodName) {
      return new Matcher<MethodTree>() {
        @Override
        public boolean matches(MethodTree methodTree, VisitorState state) {
          return ASTHelpers.getSymbol(methodTree)
                  .getEnclosingElement()
                  .getQualifiedName()
                  .contentEquals(className)
              && methodTree.getName().contentEquals(methodName);
        }
      };
    }
docs: Match a method declaration with a specific enclosing class and method name.
  
  @param className The fully-qualified name of the enclosing class, e.g.
  "com.google.common.base.Preconditions"
  @param methodName The name of the method to match, e.g., "checkNotNull"