GrStatement (@Nullable PsiElement context) { while (context != null) { if (isExpressionStatement(context)) return (GrStatement)context; context = PsiTreeUtil.getParentOfType(context, GrStatement.class, true); } return null; }