for( String baseType : requiredBaseTypes )
{
if( ! type.isOfType( baseType ) )
{
final LocalizableText template = ( type.kind() == JavaTypeKind.INTERFACE ? interfaceDoesNotExtend : classDoesNotImplementOrExtend );
final String msg = template.format( val, baseType );
return Status.createErrorStatus( msg );
}
}
}
else