GROOVY-6098: if an unresolved variable is found, we can check for isXXX methods