void (ContentEntry contentEntry, ContentFolderRef folderRef) { if (folderRef instanceof ExternalContentFolderRef) { String url = folderRef.getUrl(); for (PyRootTypeProvider provider : myRootTypeProviders) { Collection<VirtualFilePointer> roots = provider.getRoots().get(contentEntry); if (roots.stream().anyMatch(pointer -> pointer.getUrl().equals(url))) { removeRoot(contentEntry, url, provider); return; } } } super.deleteContentFolder(contentEntry, folderRef); }