code: private static boolean isSavedInDir(ScriptWrapper scriptWrapper, File directory) {
  		File file = scriptWrapper.getFile();
  		if (file == null) {
  			return false;
  		}
  		return file.getParentFile().equals(directory);
  	}
docs: Tells whether or not the given script is saved in the given directory.
  
  @param scriptWrapper the script to check.
  @param directory the directory where to check.
  @return {@code true} if the script is saved in the given directory, {@code false} otherwise.