boolean (@NotNull String exeName) { assert exeName.indexOf(File.pathSeparatorChar) == -1 : exeName; File exeFile = PathEnvironmentVariableUtil.findInPath(exeName); if (exeFile != null) { return true; } String pathWithExt = PathEnvironmentVariableUtil.findExecutableInWindowsPath(exeName); return !pathWithExt.equals(exeName); }