def METHOD_NAME(self, user_checks_dir):
    extra_jmx_instance_config = None
    jmx_config_files = []
    if is_enabled():
        if self.is_producer_app:
            # kafka connect cfg
            os.makedirs(
                os.path.join(user_checks_dir, "jmx_2.d"),
                exist_ok=True,
            )
            kafka_connect_cfg = (
                jmx_cfg_generator.generate_kafka_connect_jmx_config()
            )
            kafka_connect_cfg_path = os.path.join(
                user_checks_dir, "jmx_2.d", "conf.yaml"
            )
            write_file(
                kafka_connect_cfg_path,
                kafka_connect_cfg,
            )
            # kafka streams cfg
            os.makedirs(
                os.path.join(user_checks_dir, "jmx_3.d"),
                exist_ok=True,
            )
            kafka_streams_cfg = (
                jmx_cfg_generator.generate_kafka_streams_jmx_config()
            )
            kafka_streams_cfg_path = os.path.join(
                user_checks_dir, "jmx_3.d", "conf.yaml"
            )
            write_file(
                kafka_streams_cfg_path,
                kafka_streams_cfg,
            )
            jmx_config_files = [
                kafka_connect_cfg_path,
                kafka_streams_cfg_path,
            ]
        else:
            # consumer metrics setup
            extra_jmx_instance_config = consumer.jmx_metrics
    return (extra_jmx_instance_config, jmx_config_files)