void () { if (!mySourceRoot.isInitialized()) { return; } ApplicationManager.getApplication().runWriteAction(() -> { VirtualFile sourceRoot = mySourceRoot.getValue(); VirtualFile[] toDelete = sourceRoot == null ? getSourceRoot().getChildren() : new VirtualFile[]{sourceRoot}; for (VirtualFile file : toDelete) { try { file.delete(this); } catch (IOException ignored) { } } }); }