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