void (@NotNull VirtualFile file) { try { // requestor must be notnull (for GlobalUndoTest) WriteAction.runAndWait(() -> file.delete(file)); } catch (Throwable throwable) { ExceptionUtil.rethrow(throwable); } }