String (@NotNull ProcessOutput processOutput) { if (processOutput.getExitCode() != 0) { String errors = processOutput.getStderr(); if (StringUtil.isEmpty(errors)) { errors = processOutput.getStdout(); } LOG.warn("Couldn't get interpreter version: process exited with code " + processOutput.getExitCode() + "\n" + errors); return null; } final String result = getVersionStringFromOutput(processOutput.getStderr()); if (result != null) { return result; } return getVersionStringFromOutput(processOutput.getStdout()); }