Project () { OpenProjectTaskBuilder optionBuilder = getOpenProjectOptions(); Path projectFile = getProjectDirOrFile(isCreateDirectoryBasedProject()); return Objects.requireNonNull(ProjectManagerEx.getInstanceEx().openProject(projectFile, optionBuilder.build())); }