void (State newState, List<String> sources, List<String> testSources, List<MavenResource> resources, List<MavenResource> testResources) { newState.mySources = sources; newState.myTestSources = testSources; newState.myResources = resources; newState.myTestResources = testResources; }