Going to make a wild guess that coffee’s contribution is its classic stimulant effect, which is well known.
Not sure why the nootropics people are always trying to come up with alternate theories for why something works when substances like caffeine are well studied and known to provide a mood boost.