private ResourceFile getTrigramStringModelFile(String filename) {
		if (filename == null || filename.isBlank()) {
			return null;
		}
		File f = new File(filename);
		ResourceFile rf = f.isAbsolute() && f.isFile() ? new ResourceFile(f)
				: Application.findDataFileInAnyModule(filename);
		if (rf == null) {
			Msg.error(this, "Unable to find string model file: %s".formatted(filename));
		}
		return rf;
	}
For test/screen shot use

@return button
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/strings/EncodedStringsDialog.java