Inferring colimits