@Override
  default boolean isTerminated() {
    final String text = getText();
    final String quote = getQuote();
    return text.length() >= getPrefixLength() +  quote.length() * 2 && text.endsWith(quote);
  }
@Override
  default boolean isTerminated()