public bool Matches(MethodInfo method)
{
if (!method.HasReturn()) return false;
if (method.ReturnType != typeof (bool)) return false;
var format = method.DeriveFormat();
var key = "returnValue";
method.ReturnParameter.ForAttribute<AliasAsAttribute>(att => key = att.Alias);
if (TemplateParser.GetSubstitutions(format).Contains(key)) return false;
return true;
}