I missed `LanguageManager.getLanguageForPath(fullPath)` -- that's a little better.