if (!(box.getContent() instanceof ReplacedContent)) {
if (!(box.getContent() instanceof InlineBlockContent)) {
    public static boolean isDecoratable(Box box) {        if (!(box.getContent() instanceof ReplacedContent)) {            if (!(box.getContent() instanceof FloatedBlockContent)) {                return true;            }        }        return false;    }