@Override
  public @NotNull CharSequence getImmutableCharSequence() {
    try {
      final Document document = myTextComponent.getDocument();
      return document.getText(0, document.getLength());
    }
    catch (BadLocationException e) {
      throw new RuntimeException(e);
    }
  }
@Override
  public @NotNull CharSequence getImmutableCharSequence()