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