@Override
  public IgnoreEntry handleContentChange(@NotNull IgnoreEntry entry, @NotNull TextRange range, String newContent)
    throws IncorrectOperationException {
    if (!(entry.getLanguage() instanceof IgnoreLanguage language)) {
      return entry;
    }
    IgnoreFileType fileType = (IgnoreFileType)language.getAssociatedFileType();
    assert fileType != null;
    PsiFile file = PsiFileFactory.getInstance(entry.getProject())
      .createFileFromText(language.getFilename(), fileType, range.replace(entry.getText(), newContent));
    IgnoreEntry newEntry = PsiTreeUtil.findChildOfType(file, IgnoreEntry.class);
    assert newEntry != null;
    return (IgnoreEntry)entry.replace(newEntry);
  }
@Override
  public IgnoreEntry handleContentChange(@NotNull IgnoreEntry entry, @NotNull TextRange range, String newContent)