StringBuffer styleString = new StringBuffer(); if (preferredSize != null && (preferredSize.isWidthDefined() || preferredSize.isHeightDefined())) { if (preferredSize.isWidthDefined())
final StringBuffer styleString = new StringBuffer(); if (preferredSize != null) { if (preferredSize.isWidthDefined()) {
    public static StringBuffer generateCSSInlinePreferredSize(SDimension preferredSize) {        StringBuffer styleString = new StringBuffer();        if (preferredSize != null && (preferredSize.isWidthDefined() || preferredSize.isHeightDefined())) {            if (preferredSize.isWidthDefined())                styleString.append("width:").append(preferredSize.getWidth()).append(";");            if (preferredSize.isHeightDefined())                styleString.append("height:").append(preferredSize.getHeight()).append(";");        }        return styleString;    }