public MemoryBlock createMemory(String name, String address, int size, String comment,
			byte initialValue) {

		return tx(() -> {
			Address startAddress = addr(address);
			Memory memory = program.getMemory();
			MemoryBlock block = memory.createInitializedBlock(name, startAddress, size,
				initialValue, TaskMonitor.DUMMY, false);
			block.setComment(comment);
			return block;
		});
	}
This prevents the 'ask to analyze' dialog from showing when called with {@code true}
Ghidra/Features/Base/src/main/java/ghidra/program/database/ProgramBuilder.java