void (@NotNull PsiLocalVariable variable) { super.visitLocalVariable(variable); if (m_ignoreForLoopParameters) { final PsiElement parent = variable.getParent(); if (parent != null) { final PsiElement grandparent = parent.getParent(); if (grandparent instanceof PsiForStatement forLoop) { final PsiStatement initialization = forLoop.getInitialization(); if (parent.equals(initialization)) { return; } } } } final String name = variable.getName(); if (isValid(name)) { return; } registerVariableError(variable, name); }