File (@NotNull @NonNls String fileBaseName) { if (SystemInfo.isWindows) { String[] fileNames = ContainerUtil.map2Array(getWindowsExecutableFileExtensions(), String.class, (String extension) -> fileBaseName + extension); List<File> exeFiles = findExeFilesInPath(true, null, getPathVariableValue(), fileNames); return ContainerUtil.getFirstItem(exeFiles); } else { return findInPath(fileBaseName); } }