Insets (Component component) { return new Insets( (mySideMask & TOP) != 0 ? getThickness() : 0, (mySideMask & LEFT) != 0 ? getThickness() : 0, (mySideMask & BOTTOM) != 0 ? getThickness() : 0, (mySideMask & RIGHT) != 0 ? getThickness() : 0 ); }