public static Rectangle shrinkRect(final Rectangle rect, final BorderPropertySet border, int sides) {
private static Rectangle shrinkRect(final Rectangle rect, final BorderPropertySet border, int sides) {
    public static Rectangle shrinkRect(final Rectangle rect, final BorderPropertySet border, int sides) {        Rectangle r2 = new Rectangle();        r2.x = rect.x + ((sides & LEFT) == 0 ? 0 : (int) border.left());        r2.width = rect.width - ((sides & LEFT) == 0 ? 0 : (int) border.left()) - ((sides & RIGHT) == 0 ? 0 : (int) border.right());        r2.y = rect.y + ((sides & TOP) == 0 ? 0 : (int) border.top());        r2.height = rect.height - ((sides & TOP) == 0 ? 0 : (int) border.top()) - ((sides & BOTTOM) == 0 ? 0 : (int) border.bottom());        return r2;    }