boolean (@NotNull final PsiElement element) { final PsiFile file = element.getContainingFile(); if (file != null) { final VirtualFile virtualFile = file.getVirtualFile(); if (virtualFile != null) { final Sdk sdk = findPythonSdk(element); if (sdk != null && isFileInSkeletons(virtualFile, sdk)) { return true; } } } return false; }