if (documentFilter == null)
writeLock(); try { DocumentFilter f = getDocumentFilter(); if (f == null)
  public void remove(int offset, int length) throws BadLocationException  {    if (documentFilter == null)      removeImpl(offset, length);    else      documentFilter.remove(getBypass(), offset, length);  }