PsiExpression (PsiExpression expression, @NotNull TypeEvaluator evaluator) { PsiNewExpression constructorCall = (PsiNewExpression)super.replace(expression, evaluator); PsiExpression argument = Objects.requireNonNull(constructorCall.getArgumentList()).getExpressions()[0]; if (myType.checkDefaultValue(argument)) { argument.delete(); } return constructorCall; }