TextRange (@NotNull String text, int from, int to, int indent) { if (from > to || to < 0) return null; TextBlockModel model = TextBlockModel.create(text, indent); if (model == null) return null; return model.mapTextBlockRangeBack(from, to); }