void (@NotNull PsiNewExpression expression) { PsiJavaCodeReferenceElement classRef = expression.getClassReference(); ProblemDescriptor descriptor = null; if (ConstructionUtils.isReferenceTo(classRef, JAVA_LANG_STRING_BUILDER, JAVA_LANG_STRING_BUFFER)) { String key = "inspection.redundant.empty.string.argument.message"; descriptor = getRedundantArgumentProblem(getSingleEmptyStringArgument(expression), key); } else if (ConstructionUtils.isReferenceTo(classRef, JAVA_LANG_STRING) && !myInspection.ignoreStringConstructor) { descriptor = getStringConstructorProblem(expression); } if (descriptor != null) { myHolder.registerProblem(descriptor); } }