for (int i = 0; i < count; i++) {
Component target = parent.getComponent(i);
Constraints constraints = layout.getConstraints(target);
Rectangle targetBounds = target.getBounds();
if (constraints != null && isOverlap(bounds.y, bounds.height, targetBounds.y, targetBounds.height)) {
Alignment horizontal = constraints.getHorizontal();
Dimension prefs = target.getPreferredSize();
Dimension mins = target.getMinimumSize();
if (horizontal instanceof Trailing) {
int gap = layoutStyle.getPreferredGap((JComponent) target, (JComponent) me, ComponentPlacement.UNRELATED, SwingConstants.WEST, parent);
Trailing trailing = (Trailing) horizontal;