private static boolean isPathExtention(Expression newExpression, Expression expression) {
    if (newExpression instanceof Call && expression instanceof Call) {
      return !((Call) newExpression).arguments().get(0).equals(((Call) expression).arguments().get(0));
    } else {
      return true;
    }
  }
Used by Aggregator Matchers (sum / count / avg etc.)
criteria/common/src/org/immutables/criteria/matcher/CriteriaContext.java