def java_process_inspector(event: PodEvent, params: JavaParams):
    """
    Displays all java-toolkit debugging options for every java process
    """
    pod = event.get_pod()
    if not pod:
        logging.info(f"Java debugging - pod not found for event: {event}")
        return
    if not params.interactive:
        logging.info("unable to support non interactive jdk events")
        return

    finding = Finding(
        title=f"Java debugging session on pod {pod.metadata.name} in namespace {pod.metadata.namespace}:",
        source=FindingSource.MANUAL,
        aggregation_key="JavaProcessInspector",
        subject=PodFindingSubject(pod),
        finding_type=FindingType.REPORT,
        failure=False,
    )
    process_finder = ProcessFinder(pod, params, ProcessType.JAVA)
    if not process_finder.matching_processes:
        ERROR_MESSAGE = "No relevant processes found for java debugging."
        logging.info(ERROR_MESSAGE)
        finding.add_enrichment([MarkdownBlock(ERROR_MESSAGE)])
        event.add_finding(finding)
        return

    finding.add_enrichment(
        [
            TableBlock(
                [[proc.pid, proc.exe, " ".join(proc.cmdline)] for proc in process_finder.matching_processes],
                ["pid", "exe", "cmdline"],
            )
        ]
    )
    finding = add_jdk_choices_to_finding(finding, params, process_finder.get_pids(), pod)
    event.add_finding(finding)

    Displays all java-toolkit debugging options for every java process
    
playbooks/robusta_playbooks/java_pod_troubleshooting.py