ChainCompletionContext (PsiLocalVariable localVariable, CompletionParameters parameters) { PsiDeclarationStatement declaration = PsiTreeUtil.getParentOfType(localVariable, PsiDeclarationStatement.class); return ChainCompletionContext.createContext(localVariable.getType(), declaration, suggestIterators(parameters)); }