def _getDecoratorsName(node):
    """
    Return a list with names of decorators attached to this node.

    @param node: current node of pylint
    """
    decorators = []
    if not node.decorators:
        return decorators
    for decorator in node.decorators.nodes:
        decorators.append(decorator.as_string())
    return decorators
