void (@NotNull PsiParameter variable) { super.visitParameter(variable); final PsiElement declarationScope = variable.getDeclarationScope(); if (!(declarationScope instanceof PsiCatchSection) && !(declarationScope instanceof PsiForeachStatement)) { return; } final PsiClass aClass = findSurroundingClassWithHiddenField(variable, m_ignoreInvisibleFields, m_ignoreStaticMethods); if (aClass == null) { return; } registerVariableError(variable, aClass); }