Language (@NotNull LookupImpl lookup) { PsiFile psiFile = lookup.getPsiFile(); if (psiFile != null) { return PsiUtilCore.getLanguageAtOffset(psiFile, lookup.getEditor().getCaretModel().getOffset()); } return null; }