File (final @NotNull RunConfigurationBase configuration) { String outputFilePath = configuration.getOutputFilePath(); if (outputFilePath != null) { final String filePath = FileUtil.toSystemDependentName(outputFilePath); File file = new File(filePath); if (configuration instanceof CommonProgramRunConfigurationParameters && !FileUtil.isAbsolute(filePath)) { String directory = ((CommonProgramRunConfigurationParameters)configuration).getWorkingDirectory(); if (directory != null) { file = new File(new File(directory), filePath); } } return file; } return null; }