PsiElement (@Nullable PsiElement candidate) { while (candidate != null && (candidate.getParent() instanceof GrLabeledStatement || !(PsiUtil.isExpressionStatement(candidate)))) { candidate = candidate.getParent(); } return candidate; }