File ( final @NotNull ExportTestResultsConfiguration config, final @NotNull Project project, final @NotNull String filename) { final File outputFolder; final String outputFolderPath = config.getOutputFolder(); if (!StringUtil.isEmptyOrSpaces(outputFolderPath)) { if (FileUtil.isAbsolute(outputFolderPath)) { outputFolder = new File(outputFolderPath); } else { outputFolder = new File(new File(project.getBasePath()), config.getOutputFolder()); } } else { outputFolder = new File(project.getBasePath()); } return new File(outputFolder, filename); }