void (SelectInContext context, final boolean requestFocus) { VirtualFile virtualFile = context.getVirtualFile(); VirtualFile parent = virtualFile.getParent(); if (parent != null) { final Project project = context.getProject(); ThumbnailView thumbnailView = ThumbnailManager.getManager(project).getThumbnailView(); thumbnailView.setRoot(parent); thumbnailView.setVisible(true); thumbnailView.setSelected(virtualFile, true); thumbnailView.scrollToSelection(); } }