A way of gathering the information vs. A way for gathering the information

how do you say it…the way of gathering the information or the way for gathering the information- why?

.
‘The way to gather information’ or ‘the way of gathering information’ sounds most normal to me.
.