Add helper method isVisible to MethodInfo.