public static Rectangle shrinkRect(final Rectangle rect, final Border border) {
public static Rectangle shrinkRect(final Rectangle rect, final Border border, int sides) {
    public static Rectangle shrinkRect(final Rectangle rect, final Border border) {        Rectangle r2 = new Rectangle();        r2.x = rect.x + border.left;        r2.width = rect.width - border.left - border.right;        r2.y = rect.y + border.top;        r2.height = rect.height - border.top - border.bottom;        return r2;    }