void (@NotNull VirtualFile file) { try { new HgResolveCommand(myProject).markResolved(HgUtil.getHgRootOrThrow(myProject, file), file); } catch (VcsException e) { LOG.error("Couldn't mark file resolved, because it is not under Mercurial root."); } }