boolean (@NotNull ASTNode node) { if (!mySettings.KEEP_SIMPLE_BLOCKS_IN_ONE_LINE) return false; PsiElement prev = node.getPsi().getPrevSibling(); if (prev instanceof PsiWhiteSpace && prev.textContains('\n')) { return false; } return !node.textContains('\n'); }