GrExpression () { final PsiElement question = findChildByType(GroovyTokenTypes.mQUESTION); for (PsiElement nextSibling = question; nextSibling != null && nextSibling.getNode().getElementType() != GroovyTokenTypes.mCOLON; nextSibling = nextSibling.getNextSibling()) { if (nextSibling instanceof GrExpression) return (GrExpression)nextSibling; } return null; }