Adding static isInterface method for protocol support (interfaces with
optional methods implemented with annotated abstract classes).