FoldedBlock (int index, int hoverLine) { updateLineNumbers(false); List<FoldedBlock> blocks = myLineMappings[index].get(hoverLine); if (blocks == null) return null; return ContainerUtil.find(blocks, folding -> { FoldRegion region = folding.getRegion(index); return region != null && !region.isExpanded(); }); }