ResourceFile getFile() {
		ResourceFile directory = getDirectory();
		if (directory == null || nameField.getText().length() == 0) {
			return null;
		}
		String name = nameField.getText();
		if (!name.toLowerCase().endsWith(provider.getExtension())) {
			name += provider.getExtension();
		}
		return new ResourceFile(directory, name);
	}
Only called directly from testing!

@param parent parent component
@param title dialog title
@param componentProvider the provider
@param scriptDirs list of directories to give as options when saving
@param scriptFile the default save location
@param scriptProvider the {@link GhidraScriptProvider}
@param help contextual help, e.g. for rename or save
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/script/SaveDialog.java