void () { extend( CompletionType.BASIC, psiElement() .withLanguage(PythonLanguage.getInstance()) .afterLeafSkipping(psiElement().whitespace(), psiElement().inside(psiElement(PyConditionalExpression.class)) .and(psiElement().afterLeaf(PyNames.IF))) , new PyKeywordCompletionProvider(TailTypes.spaceType(), PyNames.ELSE)); }