boolean (KtExpression block, KtExpression expression) { if (block == expression) return true; return block instanceof KtBlockExpression && expression.getParent() == block && PsiTreeUtil.getNextSiblingOfType(expression, KtExpression.class) == null; }