@staticmethod
def import_inline_meta(meta, titlemeta, mergeconflicts=True):
    """Given a meta dict and JSON found in a title block, check if titlemeta
        is "valid" fastac json, and import any keys found.
        This tries to avoid clobbering in general, but titlemeta subkeys defining
        a dict which already exists in meta will be applied as a dict update, in
        which case overwriting may occur. Also, if both define a list with the
        same name (for example "comments"), then the titlemeta list will extend
        meta, in which case duplicates may occur.
        Finally, returns the sequence type, if defined, or an empty string."""
    if not isinstance(titlemeta, dict):
        return ''
    for key in titlemeta:
        if key not in meta:
            meta[key] = titlemeta[key]
        elif isinstance(meta[key], list) and isinstance(titlemeta[key], list):
            meta[key].extend(titlemeta[key])
        elif isinstance(meta[key], dict) and isinstance(titlemeta[key], dict):
            meta[key].update(titlemeta[key])
