void (@NotNull final GeneralCommandLine cmd) { String workingDirectory = myConfiguration.getWorkingDirectory(); if (StringUtil.isEmptyOrSpaces(workingDirectory)) { workingDirectory = myConfiguration.getWorkingDirectorySafe(); } else { workingDirectory = getExpandedWorkingDir(myConfiguration); } cmd.withWorkDirectory(workingDirectory); }