private static @NotNull AbstractBlockWrapper extendBlockFromStart(@NotNull AbstractBlockWrapper block) {
    while (true) {
      AbstractBlockWrapper parent = block.getParent();
      if (parent != null && parent.getStartOffset() == block.getStartOffset()) {
        block = parent;
      }
      else {
        return block;
      }
    }
  }
private static @NotNull AbstractBlockWrapper extendBlockFromStart(@NotNull AbstractBlockWrapper block)