def find_hooks(plugin_module):
    """
    Find hooks in plugin module

    :param plugin_module: module object
    :return: list of list of Hook objects and list of IntervalHook objects
    """
    hooks = []
    interval_hooks = []
    # Iterating throw plugin elements
    for name in plugin_module.__dict__.keys():
        item = plugin_module.__dict__[name]

        # Hooks are setting '_sheldon_hook' parameters
        # on functions when they decorated.
        if (hasattr(item, '_sheldon_hook') and
                    item._sheldon_hook.type != 'interval'):
            # If it not interval hook,
            hooks.append(item._sheldon_hook)
        elif (hasattr(item, '_sheldon_hook') and
                      item._sheldon_hook.type == 'interval'):
            interval_hooks.append(item._sheldon_hook)
    return [hooks, interval_hooks]