if (a.isDefined(BidiLevel)) return ((Integer)a.getAttribute(BidiLevel)).intValue();
Integer i = (Integer) a.getAttribute(BidiLevel); if (i != null) return i.intValue();
  public static int getBidiLevel(AttributeSet a)  {    if (a.isDefined(BidiLevel))      return ((Integer)a.getAttribute(BidiLevel)).intValue();    else      return 0;  } 