[rev=Peter]IDEA-107204 Not all execution paths return a value warning is incorrect when all pathes throw exception
(cherry picked from commit f86c969)