boolean (TextRange range) { if (myExtendedAffectedRanges == null) return false; for (TextRange affectedRange : myExtendedAffectedRanges) { if (affectedRange.intersects(range)) return true; } return false; }