public static boolean isDWARF(Program program) {
		String format = Objects.requireNonNullElse(program.getExecutableFormat(), "");

		switch (format) {
			case ElfLoader.ELF_NAME:
			case PeLoader.PE_NAME:
				return hasExpectedDWARFSections(program) ||
					ExternalDebugInfo.fromProgram(program) != null;
			case MachoLoader.MACH_O_NAME:
				return hasExpectedDWARFSections(program) ||
					DSymSectionProvider.getDSYMForProgram(program) != null;
		}
		return false;
	}
Returns true if the {@link Program program} probably has DWARF information, without doing
all the work that querying all registered DWARFSectionProviders would take.
<p>
If the program is an Elf binary, it must have (at least) ".debug_info" and ".debug_abbr",
program sections, or their compressed "z" versions, or ExternalDebugInfo that would point
to an external DWARF file.
<p>
If the program is a MachO binary (Mac), it must have a ".dSYM" directory co-located 
next to the original binary file on the native filesystem (outside of Ghidra).  See the 
DSymSectionProvider for more info.

@param program {@link Program} to test
@return boolean true if program probably has DWARF info, false if not
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/dwarf/DWARFProgram.java