boolean (@NotNull PsiFile source) { if (InjectedLanguageManager.getInstance(source.getProject()).isInjectedFragment(source)) { return false; } return source.getLanguage().isKindOf(PythonLanguage.getInstance()); }