Consider the following:
class C {
static boolean setFlag(boolean flag) {
b = flag
}
private static boolean b
static void print() {
println b
}
}
C.flag = true
C.print()
Expression "C.flag" is showing property "flag" as unknown (underlined). Groovy supports bean-style use of setters in this manner.

Consider the following:
Expression "C.flag" is showing property "flag" as unknown (underlined). Groovy supports bean-style use of setters in this manner.