Project () { ProjectManager projectManager = ProjectManager.getInstance(); Project[] openProjects = projectManager.getOpenProjects(); return openProjects.length != 0 ? openProjects[0] : projectManager.getDefaultProject(); }