static GhidraBundle.Type getType(ResourceFile file) {
		if (file.isDirectory()) {
			return GhidraBundle.Type.SOURCE_DIR;
		}
		String fileName = file.getName().toLowerCase();
		if (fileName.endsWith(".bnd")) {
			return GhidraBundle.Type.BND_SCRIPT;
		}
		if (fileName.endsWith(".jar")) {
			return GhidraBundle.Type.JAR;
		}
		return GhidraBundle.Type.INVALID;
	}
Get the type of {@link GhidraBundle} from its file.

@param file a bundle file
@return the type
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/osgi/GhidraBundle.java