@Override
  public @NotNull ProperTextRange injectedToHost(@NotNull TextRange injected) {
    int start = injectedToHost(injected.getStartOffset(), false, true);
    ProperTextRange fixedTextRange = getFixedTextRange(start);
    if (fixedTextRange != null) {
      return fixedTextRange;
    }
    int end = injectedToHost(injected.getEndOffset(), true, true);
    if (end < start) {
      end = Math.max(start, injectedToHost(injected.getEndOffset(), false, true));
    }
    return new ProperTextRange(start, end);
  }
@Override
  public @NotNull ProperTextRange injectedToHost(@NotNull TextRange injected)