void (@NotNull final FileEditorManager manager, @NotNull final VirtualFile file) { ApplicationManager.getApplication().invokeLater(() -> { if (myPanel.isFocused()) { manager.openFile(file, true); } }); }