boolean (@NotNull LookupElement lookupElement) { String lookupString = lookupElement.getLookupString(); if (lookupString.contains(".") || PyUtil.isSpecialName(lookupString)) { return false; } PsiElement elem = lookupElement.getPsiElement(); if (elem instanceof PyClass) { return false; } if (elem instanceof PyFunction && ((PyFunction)elem).getProperty() == null) { return false; } return true; }