boolean (@NotNull WordBlock block) { CharSequence sequence1 = myText1.subSequence(block.offsets.start1, block.offsets.end1); CharSequence sequence2 = myText2.subSequence(block.offsets.start2, block.offsets.end2); return ComparisonUtil.isEquals(sequence1, sequence2, ComparisonPolicy.IGNORE_WHITESPACES); }