void ( @NotNull PsiNewExpression newExpression) { super.visitNewExpression(newExpression); final PsiType type = newExpression.getType(); if (!isObsoleteCollectionType(type)) { return; } if (ignoreRequiredObsoleteCollectionTypes && isRequiredObsoleteCollectionElement(newExpression)) { return; } registerNewExpressionError(newExpression); }