Rectangle (int foldStart, int anchorWidth, int anchorX) { if (ExperimentalUI.isNewUI()) { //in new ui folding anchor click area has full line height, see IDEA-296393 return new Rectangle(anchorX, myEditor.visualLineToY(foldStart), anchorWidth, myEditor.getLineHeight()); } return new Rectangle(anchorX, (int)getFoldAnchorY(foldStart, anchorWidth), anchorWidth, anchorWidth); }