making CanShowWidget method static