Return a list with names of decorators attached to this node.

    @param node: current node of pylint

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

    @param node: current node of pylint
    """
    # For setter properties pylint fails so we use a custom code.
    decorators = []
    if not node.decorators:
        return decorators

    for decorator in node.decorators.nodes:
        decorators.append(decorator.as_string())
    return decorators