public static File setTestPlatformStateLocation() {
   if (PydevPlugin.location != null) {
     return PydevPlugin.location;
   }
   File baseDir = new File(TestDependent.TEST_PYDEV_PLUGIN_LOC, "data_temporary_for_testing");
   try {
     FileUtils.deleteDirectoryTree(baseDir);
   } catch (IOException e) {
     e.printStackTrace();
   }
   PydevPlugin.location = baseDir;
   return baseDir;
 }
 private RefactoringRequest createRefactoringRequest(String line, final File file) {
   return new RefactoringRequest(
       file,
       new PySelection(new Document(FileUtils.getFileContents(file)), line.length()),
       nature);
 }