void (@Nullable JComponent anchor) { myAnchor = anchor; for (Object o : myOptions) { if (o instanceof Pair && ((Pair<?, ?>)o).first instanceof AnchorableComponent) { ((AnchorableComponent)((Pair<?, ?>)o).first).setAnchor(anchor); } } }