void () { File executableFromEnv = PathEnvironmentVariableUtil.findInPath(SystemInfo.isWindows ? WIN_EXECUTABLE : UNIX_EXECUTABLE, getPathEnv(), null); String path = executableFromEnv != null ? executableFromEnv.getAbsolutePath() : null; myEnvExecutable.set(new DetectedPath(path)); }