public MemoryBlock createOverlayMemory(String name, String address, int size) {

		return tx(() -> {
			return program.getMemory()
					.createInitializedBlock(name, addr(address), size, (byte) 0, TaskMonitor.DUMMY,
						true);
		});
	}
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