core/src/main/java/com/orientechnologies/orient/core/sql/parser/OExpression.java
List<String> getMatchPatternInvolvedAliases() {
    if (mathExpression != null)
      return mathExpression.getMatchPatternInvolvedAliases();
    if (arrayConcatExpression != null)
      return arrayConcatExpression.getMatchPatternInvolvedAliases();
    return null;
  }
List<String> getMatchPatternInvolvedAliases() {
    if (mathExpression != null)
      return mathExpression.getMatchPatternInvolvedAliases();
    if (arrayConcatExpression != null)
      return arrayConcatExpression.getMatchPatternInvolvedAliases();
    return null;
  }
List < String > getMatchPatternInvolvedAliases ( ) { if ( mathExpression != null ) return mathExpression . getMatchPatternInvolvedAliases ( ) ; if ( arrayConcatExpression != null ) return arrayConcatExpression . getMatchPatternInvolvedAliases ( ) ; return null ; }
if the condition involved the current pattern (MATCH statement, eg. $matched.something = foo), returns the name of involved
pattern aliases ("something" in this case)

@return a list of pattern aliases involved in this condition. Null it does not involve the pattern
if the condition involved the current pattern ( MATCH statement eg . $matched . something = foo ) returns the name of involved pattern aliases ( something in this case )