public GTheme readTheme() throws IOException {
		if (file.getName().endsWith(GTheme.FILE_EXTENSION)) {
			return readFileTheme();
		}
		if (file.getName().endsWith(GTheme.ZIP_FILE_EXTENSION)) {
			return readZipTheme();
		}

		throw new IOException("Imported File must end in either " + GTheme.FILE_EXTENSION + " or " +
			GTheme.ZIP_FILE_EXTENSION);
	}
Constructor for reading a theme from a file.
@param file the file to read as a theme
@throws IOException if an I/O error occurs reading the theme file
Ghidra/Framework/Gui/src/main/java/generic/theme/ThemeReader.java