protected boolean validateTypeArity(IAcceptor<? super AbstractDiagnostic> result) {
if (getTypeArityMismatch() != 0) {
String message = String.format("Invalid number of type arguments. The %1$s %2$s%3$s is not applicable for the type arguments %4$s",
getFeatureTypeName(),
getSimpleFeatureName(),
getFeatureTypeParametersAsString(true),
getTypeArgumentsAsString(getSyntacticTypeArguments()));
AbstractDiagnostic diagnostic = new EObjectDiagnosticImpl(
Severity.ERROR,
IssueCodes.INVALID_NUMBER_OF_TYPE_ARGUMENTS,
message,
getExpression(),
getDefaultValidationFeature(), -1, null);
result.accept(diagnostic);
return false;
}
return true;
}