code: private static boolean isCallTo(Node n, Node targetMethod) {
      if (!n.isCall()) {
        return false;
      }
      Node method = n.getFirstChild();
      return method.isGetProp() && method.matchesQualifiedName(targetMethod);
    }
docs: A faster version of NodeUtil.isCallTo() for methods in the GETPROP form.
  
  @param n The CALL node to be checked.
  @param targetMethod A prebuilt GETPROP node representing a target method.
  @return Whether n is a call to the target method.