void (@NotNull SelectInContext context, boolean requestFocus) { if (SelectInProjectViewImplKt.getLOG().isDebugEnabled()) { SelectInProjectViewImplKt.getLOG().debug( "SelectInTargetPsiWrapper.selectIn: Select in " + this + ", requestFocus=" + requestFocus + " using context " + context ); } VirtualFile file = context.getVirtualFile(); Object selector = context.getSelectorInFile(); if (SelectInProjectViewImplKt.getLOG().isDebugEnabled()) { SelectInProjectViewImplKt.getLOG().debug("File is " + file + ", selector is " + selector); } if (selector == null) { selector = PsiUtilCore.findFileSystemItem(myProject, file); if (SelectInProjectViewImplKt.getLOG().isDebugEnabled()) { SelectInProjectViewImplKt.getLOG().debug("Falling back to selector " + selector); } } if (selector instanceof PsiElement) { PsiUtilCore.ensureValid((PsiElement)selector); PsiElement original = ((PsiElement)selector).getOriginalElement(); if (original != null && !original.isValid()) { throw new PsiInvalidElementAccessException(original, "Returned by " + selector + " of " + selector.getClass()); } try (var ignored = SlowOperations.startSection(SlowOperations.ACTION_PERFORM)) { if (SelectInProjectViewImplKt.getLOG().isDebugEnabled()) { SelectInProjectViewImplKt.getLOG().debug("Selecting " + original); } select(original, requestFocus); } } else { if (SelectInProjectViewImplKt.getLOG().isDebugEnabled()) { SelectInProjectViewImplKt.getLOG().debug("Selecting non-PSI selector " + selector + " in file " + file); } select(selector, file, requestFocus); } }