Insets (Component component, Insets insets) { insets.top = myMode == FeedbackTreeLayer.INSERT_BEFORE ? thickness : 0; insets.left = insets.right = thickness; insets.bottom = myMode == FeedbackTreeLayer.INSERT_AFTER ? thickness : 0; return insets; }