Rectangle (final SingleRowPassInfo data) { int x; if (myTabs.isEditorTabs()) { x = data.layoutSize.width - myTabs.getActionsInsets().right - data.moreRectAxisSize; } else { x = data.position; } x -= data.entryPointAxisSize; return new Rectangle(x, 1, data.moreRectAxisSize, myTabs.getHeaderFitSize().height); }