@Override
  public PsiManagerEx getManager() {
    Project project = ProjectCoreUtil.theOnlyOpenProject();
    if (project != null) {
      return PsiManagerEx.getInstanceEx(project);
    }
    return (PsiManagerEx)getContainingFile().getManager();
  }
@Override
  public PsiManagerEx getManager()