LeafBlockWrapper (@NotNull AbstractBlockWrapper block) { if (block instanceof LeafBlockWrapper) { return (LeafBlockWrapper)block; } else { return getFirstLeaf(((CompositeBlockWrapper)block).getChildren().get(0)); } }