def get_params_from_method_signature(method_signature_pb, is_static):
    """
    Get parameter types from method signature.
    :param MethodSignature method_signature_pb: java_signatures_pb2.MethodSignature
    :param bool is_static: is static method
    :return: list of JavaType
    """
    param_types = []
    if not is_static:
        param_types.append(method_signature_pb.owner)
    param_types.extend(method_signature_pb.proto.param_types)
    return param_types