boolean (GroovyPsiElement condition) { if (condition instanceof GrExpression) { return Boolean.TRUE.equals(GroovyConstantExpressionEvaluator.evaluateNoResolve((GrExpression)condition)); } else { return false; } }