public ElfProgramHeader[] getProgramHeaders(int type) {
		ArrayList<ElfProgramHeader> list = new ArrayList<>();
		for (ElfProgramHeader programHeader : programHeaders) {
			if (programHeader.getType() == type) {
				list.add(programHeader);
			}
		}
		ElfProgramHeader[] arr = new ElfProgramHeader[list.size()];
		list.toArray(arr);
		return arr;
	}
Returns the program headers with the specified type.
The array could be zero-length, but will not be null.
@param type program header type
@return the program headers with the specified type
@see ElfProgramHeader
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/elf/ElfHeader.java