Language (@Nullable String langID) { if (langID == null || langID.isEmpty()) { return null; } synchronized (InjectedLanguage.class) { if (ourLanguageCache == null || ourLanguageCount != Language.getRegisteredLanguages().size()) { initLanguageCache(); } return ourLanguageCache.get(langID); } }