void (@NotNull List<String> urls, @Nullable Disposable disposable) { long modificationCount = getModificationCount(); for (String url : urls) { addIgnoredSilently(url); } if (modificationCount != getModificationCount()) { if (disposable != null) { //noinspection CodeBlock2Expr Disposer.register(disposable, () -> { ApplicationManager.getApplication().runWriteAction(() -> { boolean isChanged = false; for (String url : urls) { if (myIgnoredResources.remove(url)) { isChanged = true; } } if (isChanged) { fireExternalResourceChanged(); } }); }); } fireExternalResourceChanged(); } }