void (@NotNull PsiNewExpression expression) { super.visitNewExpression(expression); if (!myClass.isEquivalentTo(PsiUtil.resolveClassInType(expression.getType()))) return; result.putValue(expression, JavaRefactoringBundle.message("inline.to.anonymous.no.ctor.calls")); }