boolean (@NotNull MergeWordFragment fragment, @NotNull List<? extends CharSequence> texts, @NotNull ComparisonPolicy policy, @NotNull ThreeSide side1, @NotNull ThreeSide side2) { int start1 = fragment.getStartOffset(side1); int end1 = fragment.getEndOffset(side1); int start2 = fragment.getStartOffset(side2); int end2 = fragment.getEndOffset(side2); CharSequence document1 = side1.select(texts); CharSequence document2 = side2.select(texts); CharSequence content1 = document1.subSequence(start1, end1); CharSequence content2 = document2.subSequence(start2, end2); return ComparisonUtil.isEqualTexts(content1, content2, policy); }