Detecting optional methods in protocols?

Is there an API, in libclang, for detecting if a method in an Objective-C protocol is optional or required?