private Map<Input, Type> getInputTypes(Map<Symbol, Input> layout, List<Type> types)
{
Builder<Input, Type> inputTypes = ImmutableMap.builder();
for (Input input : ImmutableSet.copyOf(layout.values())) {
Type type = types.get(input.getChannel());
inputTypes.put(input, type);
}
return inputTypes.build();
}