boolean () { if (myRefExpr.getQualifierExpression() != null) { return false; } PsiElement parent = myRefExpr.getParent(); return parent == null || parent.getLanguage().isKindOf(GroovyLanguage.INSTANCE); //don't skip in Play! }