static DomainFile parseDomainFile(Project project, String val) {
		// Add the slash to make it an absolute path
		if (!val.isEmpty() && val.charAt(0) != FileSystem.SEPARATOR_CHAR) {
			val = FileSystem.SEPARATOR_CHAR + val;
		}
		DomainFile df = project.getProjectData().getFile(val);
		if (df != null) {
			return df;
		}
		return null;
	}
Base class for either project file chooser or project folder chooser
Ghidra/Features/Base/src/main/java/ghidra/features/base/values/AbstractProjectBrowserPanel.java