private void populateProjectData(Project[] projects) {
   HashMap<String, Project> projectsList = new HashMap<String, Project>();
   ArrayList<String> projectNames = new ArrayList<String>();
   for (Project p : projects) {
     projectsList.put(p.getId(), p);
     projectNames.add(p.getName());
   }
   Storage.getInstance().setProjects(projectsList);
   Storage.getInstance().getProjectNames().addAll(projectNames);
   for (Project p : projects) {
     connector.fetchFiles(p.getId());
   }
 }
 private void populateFileData(String projId, File[] files) {
   if (files == null) return;
   Project p = Storage.getInstance().getProjects().get(projId);
   if (p == null) return;
   p.setFiles(files);
 }