class GitIgnoreContributor implements ProjectContributor {

	private final GitIgnore gitIgnore;

	public GitIgnoreContributor(GitIgnore gitIgnore) {
		this.gitIgnore = gitIgnore;
	}

	@Override
	public void contribute(Path projectRoot) throws IOException {<FILL_FUNCTION_BODY>}

}

		if (this.gitIgnore.isEmpty()) {
			return;
		}
		Path file = Files.createFile(projectRoot.resolve(".gitignore"));
		try (PrintWriter writer = new PrintWriter(Files.newBufferedWriter(file))) {
			this.gitIgnore.write(writer);
		}
	
<no_super_class>