Fix NPE on PHPStorm