void (@Nullable Point mousePosition) { Rectangle compBounds = comp.getVisibleRect(); if (!isSeparatorShown(comp)) { updateHoverRect(compBounds); return; } Rectangle left = new Rectangle(compBounds.x, compBounds.y, separatorPosition - getSeparatorGap(), compBounds.height); Rectangle right = new Rectangle(separatorPosition + SEPARATOR_WIDTH + getSeparatorGap(), compBounds.y, (compBounds.width - separatorPosition - SEPARATOR_WIDTH - getSeparatorGap()), compBounds.height); updateHoverRect(mousePosition == null || mousePosition.x <= separatorPosition ? left : right); }