CompletionVariantsProcessor (PsiElement location, boolean suppressParentheses, PointInImport point) { final Condition<PsiElement> nodeFilter = psiElement -> !(psiElement instanceof PyImportElement) || PsiTreeUtil.getParentOfType(psiElement, PyImportStatementBase.class) instanceof PyFromImportStatement; return new CompletionVariantsProcessor(location, nodeFilter, null, point == PointInImport.AS_NAME, // no parens after imported function names suppressParentheses); }