void (@NotNull PsiVariable variable) { super.visitVariable(variable); final PsiType type = variable.getType(); if (!isObsoleteCollectionType(type)) { return; } if (LibraryUtil.isOverrideOfLibraryMethodParameter(variable)) { return; } final PsiTypeElement typeElement = variable.getTypeElement(); if (typeElement == null) { return; } if (ignoreRequiredObsoleteCollectionTypes && checkReferences(variable)) { return; } registerError(typeElement); }