public void fileReused(File f){
  if (!recentFiles.contains(f)) {
    throw new IllegalStateException("Selected a recent project that doesn't exist?");
  }
 else {
    recentFiles.remove(f);
    recentFiles.add(f);
  }
}

public void fileReused ( File f ) { if ( ! recentFiles . contains ( f ) ) { throw new IllegalStateException ( "Selected a recent project that doesn't exist?" ) ; } else { recentFiles . remove ( f ) ; recentFiles . add ( f ) ; } }
this should be the method called to add a reused file for the recent menu .
