private static FoldRegion getHostRegion(@NotNull FoldRegion injectedRegion) {
    return injectedRegion instanceof FoldingRegionWindow ? ((FoldingRegionWindow)injectedRegion).getDelegate() : injectedRegion;
  }
private static FoldRegion getHostRegion(@NotNull FoldRegion injectedRegion)