Rectangle (AbstractPosition position, boolean adjust) { Dimension size = getContentSizeFor(position); Rectangle rec = new Rectangle(new Point(0, 0), size); position.setRecToRelativePosition(rec, myTargetPoint); if (adjust) { rec = myPosition.getUpdatedBounds(this, rec.getSize(), getShadowBorderInsets()); } else { JBInsets.addTo(rec, getShadowBorderInsets()); } return rec; }