void (final VirtualFile result, final Project project, final boolean editor) { ApplicationManager.getApplication().invokeLater(() -> { if (editor) { FileEditorManager.getInstance(project).openFile(result, true); } else { BrowserUtil.browse(result); } }); }