try { SFVFile sfv = file.lookupSFVFile(); if (sfv != null && !sfv.getStatus().isFinished()) incompleteSfv.put(sfv, file); } catch (FileNotFoundException e) { //no sfv, ignore that } catch (IOException e) { e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. } catch (NoAvailableSlaveException e) { e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. } catch (FileStillTransferringException e) { }