boolean (final @NotNull TextRange rangeInsideHost, @NotNull StringBuilder outChars) { int startInDecoded = myHost.physicalToDisplay(rangeInsideHost.getStartOffset()); int endInDecoded = myHost.physicalToDisplay(rangeInsideHost.getEndOffset()); outChars.append(myHost.getValue(), startInDecoded, endInDecoded); return true; }