File (@NotNull ProjectTaskContext context) { File outputFile = null; if (context.isCollectionOfGeneratedFilesEnabled()) { try { outputFile = FileUtil.createTempFile("output", ".paths", true); } catch (IOException e) { LOG.warn("Can not create temp file to collect Gradle tasks output paths", e); } } return outputFile; }