Project () { Project project = ProjectCoreUtil.theOnlyOpenProject(); if (project != null) { return project; } PsiManager manager = getManager(); if (manager == null) invalid(); return manager.getProject(); }