void (@NotNull PsiForeachStatement statement) { super.visitForeachStatement(statement); PsiParameter parameter = statement.getIterationParameter(); PsiTypeElement typeElement = parameter.getTypeElement(); if (typeElement != null && !typeElement.isInferredType()) { PsiForeachStatement copy = (PsiForeachStatement)statement.copy(); doCheck(parameter, Objects.requireNonNull(copy.getIterationParameter()), typeElement); } }