public static boolean isSwift(Program program) {
		List<String> prefixes = List.of("__swift", "swift", ".sw5");
		for (MemoryBlock block : program.getMemory().getBlocks()) {
			if (prefixes.stream().anyMatch(prefix -> block.getName().startsWith(prefix))) {
				return true;
			}
		}
		return false;
	}
Checks if the given {@link Program} is a Swift program

@param program The {@link Program} to check
@return True if the given {@link Program} is a Swift program; otherwise, false
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/swift/SwiftUtils.java