boolean (@Nullable ASTNode node) { if (node == null) return false; IElementType type = node.getElementType(); return type == TokenType.WHITE_SPACE || (type != TokenType.ERROR_ELEMENT && node.getTextLength() == 0); }