String (@NotNull Project project) { HgProjectSettings projectSettings = HgProjectSettings.getInstance(project); if (!projectSettings.isHgExecutableOverridden()) return getHgExecutable(); String path = projectSettings.getHgExecutable(); return path == null ? getDefaultExecutable() : path; }