def METHOD_NAME(qgs_maplayer=None, **kwargs):
    """
    Return bitwise layer capabilities (by QGIS consts) values
    :param qgs_maplayer: QgsMapLayer instance
    :param **kwargs: optional params
    :return: int
    """
    # get qgs_maplayer if not set
    if not qgs_maplayer:
        qgs_maplayer = get_qgs_project(kwargs['layer'].project.qgis_file.path).mapLayers()[kwargs['layer'].qgs_layer_id]
    capabilities = 0
    if bool(qgs_maplayer.flags() & QgsMapLayer.Identifiable):
        capabilities |= settings.QUERYABLE
    if bool(qgs_maplayer.flags() & QgsMapLayer.Searchable):
        capabilities |= settings.FILTRABLE
    return capabilities