void (@NotNull PsiNewExpression expression) { final PsiType type = expression.getType(); if (!(type instanceof PsiClassType)) { return; } final PsiClass aClass = ((PsiClassType)type).resolve(); if (aClass == null) { return; } if (!UtilityClassUtil.isUtilityClass(aClass)) { return; } registerNewExpressionError(expression); }