boolean (PsiVariable iterator, PsiType contentType, PsiElement child) { if (!(child instanceof PsiExpressionStatement expressionStatement)) { return false; } final PsiExpression expression = expressionStatement.getExpression(); return isIteratorNext(expression, iterator, contentType); }