Optionally exclude inherited methods