extract guessProjectForContentFile
(cherry picked from commit 510ccb2)
mark StreamProvider.saveContent content param as NotNull
(cherry picked from commit 8a528da)