svoid addToContainerWithConstraint(Container a, Component b, O constraint) { if (a != null && b != null) swing { a.add(b, constraint); } }