public static bool IsStatementMethod(MethodInfo m) { return m.IsPublic && m.ReturnType == typeof(bool) && m.DeclaringType != typeof(object); }