int count = parent.getComponentCount();
GroupLayout layout = (GroupLayout) parent.getLayout();
LayoutStyle layoutStyle = LayoutStyle.getInstance();
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.x, bounds.width, targetBounds.x, targetBounds.width)) {
Alignment vertical = constraints.getVertical();
Dimension prefs = target.getPreferredSize();
Dimension mins = target.getMinimumSize();
if (vertical instanceof Trailing) {
int gap = layoutStyle.getPreferredGap((JComponent) target, (JComponent) me, ComponentPlacement.UNRELATED, SwingConstants.NORTH, parent);
Trailing trailing = (Trailing) vertical;