Yes, it may return `null`, but it would mean that project file is not correct. Added `null` check.