List<TextRange> (final SpacingImpl spaceProperty, final WhiteSpace whiteSpace) { if (!(spaceProperty instanceof DependantSpacingImpl spacing)) return ContainerUtil.emptyList(); if (whiteSpace.isReadOnly() || whiteSpace.isLineFeedsAreReadOnly()) return ContainerUtil.emptyList(); return ContainerUtil.filter(spacing.getDependentRegionRanges(), dependencyRange -> whiteSpace.getStartOffset() < dependencyRange.getEndOffset()); }