void (@NotNull PsiNewExpression expression) { super.visitNewExpression(expression); if (myIgnoreFields && expression.getParent() instanceof PsiField) { return; } final PsiType type = expression.getType(); if (!mySettings.getCollectionClassesRequiringCapacity().contains(TypeUtils.resolvedClassName(type))) { return; } final PsiExpressionList argumentList = expression.getArgumentList(); if (argumentList == null || !argumentList.isEmpty()) { return; } registerNewExpressionError(expression); }