em.addSelectionListener(this);
em.addCaretListener(this);
em.addVisibleAreaListener(this);
virtualFileAdapter = new VirtualFileAdapter() {
public void beforePropertyChange(@NotNull final VirtualFilePropertyEvent event) {
if (!event.getPropertyName().equals(VirtualFile.PROP_NAME)) {
return;
}
VirtualFile parent = event.getParent();