void (Object object, VirtualFile file, boolean requestFocus) { if (myTreeModel.get() == null) { if (SelectInProjectViewImplKt.getLOG().isDebugEnabled()) { SelectInProjectViewImplKt.getLOG().debug("Can NOT select " + object + " / " + file + " in " + this + " because the scope pane isn't initialized yet"); } // not initialized yet return; } if (file == null) { LOG.warn(new IllegalArgumentException("ScopeViewPane.select: file==null, object=" + object)); if (SelectInProjectViewImplKt.getLOG().isDebugEnabled()) { SelectInProjectViewImplKt.getLOG().debug("Can NOT select " + object + " / " + file + " in " + this + " because the file is null"); } return; // Filters don't accept null files anyway, so just do nothing. } PsiElement element = object instanceof PsiElement ? (PsiElement)object : null; SmartPsiElementPointer<PsiElement> pointer = null; if (element != null) { if (element.isValid()) { pointer = SmartPointerManager.createPointer(element); } else { LOG.warn("ScopeViewPane.select(object=" + object + ",file=" + file + ",requestFocus=" + requestFocus + "): element invalidated"); } } if (SelectInProjectViewImplKt.getLOG().isDebugEnabled()) { SelectInProjectViewImplKt.getLOG().debug("Select " + object + " / " + file + " in " + this); } myProject.getService(SelectInProjectViewImpl.class).selectInScopeViewPane(this, pointer, file, requestFocus); }