@Override
		public boolean accept(File file) {
			if (file.isFile()) {
				String name = file.getName();
				if (prefix == null || name.indexOf(prefix) == 0) {
					if (ext == null || name.endsWith(ext)) {
						return true;
					}
				}
			}
			return false;
		}
File filter to identify various files
Ghidra/Framework/DB/src/main/java/db/buffers/LocalBufferFile.java