void () { extend(CompletionType.BASIC, psiElement() .withLanguage(PythonLanguage.getInstance()) .inside(psiElement(PySequenceExpression.class)) .andNot(psiElement() .afterLeaf(or(psiElement(PyTokenTypes.LBRACE), psiElement(PyTokenTypes.LBRACKET), psiElement(PyTokenTypes.LPAR)))) .andNot(IN_COMMENT), new PyKeywordCompletionProvider(PyNames.FOR)); }