public final synchronized boolean checkContentIsEqualTo(@NotNull CharSequence sequence) {
    Document document = getDocument();
    return document != null && isInSyncWithDocument() && Comparing.equal(document.getImmutableCharSequence(), sequence);
  }
public final synchronized boolean checkContentIsEqualTo(@NotNull CharSequence sequence)