@Override public Boolean visit(MethodReferenceExpr n1, Node arg) { MethodReferenceExpr n2 = (MethodReferenceExpr) arg; if (!nodeEquals(n1.getScope(), n2.getScope())) { return Boolean.FALSE; } if (!nodesEquals(n1.getTypeParameters(), n2.getTypeParameters())) { return Boolean.FALSE; } if (!objEquals(n1.getIdentifier(), n2.getIdentifier())) { return Boolean.FALSE; } return Boolean.TRUE; }