if (incoming != null) {
frameCosts = frameCosts.add(incoming, 1, 1);
}
knownTotalCosts.put(f.uniqueID, frameCosts);
for (final int outputId : f.outputIds) {
final InternalInformation internal = model.internals[outputId];
ResourceCosts varCosts = res.get(internal.info.name);
if (varCosts == null) {
varCosts = frameCosts;
} else {
varCosts = costSelector.selectCosts(Arrays.asList(frameCosts, varCosts));