private boolean changeView(final PackageSet packageSet, final PsiElement element, final PsiFile psiFile,
final String name, boolean requestFocus)
{
// Does not work anymore with IDEA 11
//NamedScopesHolder holder = NamedScopesHolder.getHolder(myProject, name, null);
NamedScopesHolder holder = NamedScopesHolder.getAllNamedScopeHolders(myProject)[0];
if ((holder == null) || packageSet.contains(psiFile, holder))
{
if (!name.equals(getSubId()))
{
myProjectView.changeView(getId(), name);