You return null here if psiDirectory is null, but you have an `if (psiDirectory == null)` at line 120