Consider the following:
class C {
Number value
void meth(that) {
def val = !(that instanceof C) ? that.toString() : that.value
}
}
The last occurrence of "value" is showing as unknown (underlined). A similar situation exists for x !instanceof T ? x : x.y and if (x !instanceof T) { ... } else { x.y }

See also https://issues.apache.org/jira/browse/GROOVY-8412
Consider the following:
The last occurrence of "value" is showing as unknown (underlined). A similar situation exists for
x !instanceof T ? x : x.yandif (x !instanceof T) { ... } else { x.y }See also https://issues.apache.org/jira/browse/GROOVY-8412