if (e instanceof Mech) {
if ( e instanceof Mech || e instanceof Protomech ) {
    public static String format(Entity e)    {        StringBuffer sb = new StringBuffer(2048);        sb.append("=============================================================\n");        sb.append(formatHeader(e));        sb.append("-------------------------------------------------------------\n");        sb.append(formatArmor(e));        if (e instanceof Mech) {            sb.append("-------------------------------------------------------------\n");            sb.append(formatCrits(e));        }        sb.append("-------------------------------------------------------------\n");        sb.append(formatAmmo(e));        sb.append("=============================================================\n");        return sb.toString();    }