void (PsiElement element) { AbstractProjectViewPane pane = supplier.get(); if (pane == null || element == null) return; VirtualFile file = getVirtualFile(element); boolean requestFocus = element instanceof PsiDirectory; pane.select(element, file, requestFocus); if (!requestFocus && null == EditorHelper.openInEditor(element, false, true)) { pane.select(element, file, true); } }