private static boolean isMovingOutOfBlock(@NotNull PsiElement sibling, boolean down) {
        return sibling.getNode().getElementType() == (down ? KtTokens.RBRACE : KtTokens.LBRACE);
    }
private static boolean isMovingOutOfBlock(@NotNull PsiElement sibling, boolean down)