void (@NotNull PsiForeachStatement statement) { final PsiExpression iteratedValue = statement.getIteratedValue(); if (iteratedValue == null || iteratedValue.getType() instanceof PsiArrayType || !isInsideEqualsOrHashCode(statement)) { return; } registerError(iteratedValue, iteratedValue, "iterator"); }