FoldedBlock (@NotNull EditorMouseEvent e) { int hoverLine = EditorUtil.yPositionToLogicalLine(myEditors[myIndex], e.getMouseEvent().getY()); FoldedBlock foldedBlock = getBlockForLine(myIndex, hoverLine); if (foldedBlock != null) { FoldRegion region = foldedBlock.getRegion(myIndex); if (region != null) return foldedBlock; } return null; }