public User createUser(String name) {
		User user = usersByName.get(name);
		if (user != null) {
			// likely a programming error
			throw new IllegalArgumentException("Attempted to create the same user more than once");
		}

		user = new User(name, User.WRITE);
		usersByName.put(name, user);
		return user;
	}
Creates a user by the given name

@param name the username
@return the new user
Ghidra/Features/Base/src/test/java/ghidra/base/project/FakeRepository.java