List<Block> () { final List<Block> list = new ArrayList<>(); ASTNode node = myNode.getFirstChildNode(); while (node != null) { if (!RncTokenTypes.WHITESPACE.contains(node.getElementType()) && node.getTextLength() > 0) { list.add(new RncBlock(node)); } node = node.getTreeNext(); } return list; }