DiffContent (int index, @NotNull BlockData data) { if (index >= data.getRevisions().size()) return DiffContentFactory.getInstance().createEmpty(); Block block = data.getBlock(index); if (block == null) return null; if (block == EMPTY_BLOCK) return DiffContentFactory.getInstance().createEmpty(); DocumentContent documentContent = DiffContentFactory.getInstance().create(block.getBlockContent(), myFile.getFileType()); documentContent.putUserData(DiffUserDataKeysEx.LINE_NUMBER_CONVERTOR, value -> value + block.getStart()); return documentContent; }