import inspect


def get_param_names(method):
    """
    Returns a list of keyword-only parameter names that may be
    passed into method.

    Parameters
    ----------
    method : function
        The method for which to return keyword-only parameters.

    Returns
    -------
    parameters : list
        A list of keyword-only parameter names for method.
    """
    try:
        signature = inspect.signature(method)
    except (ValueError, TypeError) as e:
        raise e

    parameters = [
        p
        for p in signature.parameters.values()
        if p.name != "self" and p.kind != p.VAR_KEYWORD
    ]

    return sorted([p.name for p in parameters])