boolean (PsiElement statement) { while (statement != null && !(statement instanceof GrExpression)) { statement = statement.getLastChild(); if (statement instanceof PsiErrorElement) { statement = nearestLeftSibling(statement); } } return statement != null; }