public static List <MethodInfo> GetSupportedMethods(ITypeResolver typeResolver, Type type)
        {
            List <MethodInfo> list = new List <MethodInfo>();

            if (!DataBindingDragDropAddTriggerHandler.IsEnabled(typeResolver))
            {
                return(list);
            }
            StringComparison comparison = DataBindingDragDropAddTriggerHandler.GetMethodNameComparison(typeResolver);

            foreach (MethodInfo methodInfo in DesignTypeGenerator.GetCommandMethods(type, typeResolver.PlatformMetadata, true))
            {
                MethodInfo method           = methodInfo;
                object[]   customAttributes = method.GetCustomAttributes(typeof(BrowsableAttribute), true);
                if ((customAttributes.Length <= 0 || ((BrowsableAttribute)customAttributes[0]).Browsable) && list.FindIndex((Predicate <MethodInfo>)(m => string.Compare(method.Name, m.Name, comparison) == 0)) < 0)
                {
                    list.Add(method);
                }
            }
            return(list);
        }