throw new AssertionError("paragraph elements are expected to be" + "instances of javax.swing.text.AbstractDocument.AbstractElement");
throw new AssertionError("paragraph elements are expected to be" + "instances of AbstractDocument.AbstractElement"); } finally { writeUnlock(); }
  public void setLogicalStyle(int position, Style style)  {    Element el = getParagraphElement(position);    if (el instanceof AbstractElement)      {        AbstractElement ael = (AbstractElement) el;        ael.setResolveParent(style);      }    else      throw new AssertionError("paragraph elements are expected to be"         + "instances of javax.swing.text.AbstractDocument.AbstractElement");  }