void (@NotNull Project project, @NotNull final VirtualFile file) { WriteCommandAction.writeCommandAction(project) .withName("VcsTestUtil DeleteFileInCommand") //NON-NLS .run(() -> { try { file.delete(file); } catch (IOException ex) { throw new RuntimeException(ex); } }); }