if (f == null) return;
    public static void importPalette(int tileset, int palette, File f)    {        try        {            FileReader in = new FileReader(f);            char[] c = new char[290];            in.read(c);            in.close();            tilesets[tileset].setPaletteAsString(new String(c), palette);        }        catch (FileNotFoundException e)        {            System.err.println("Unable to find file to import palette from.");        }        catch (IOException e)        {            System.err.println("Error reading file to import palette from.");        }    }