void (@NotNull VirtualFile file, boolean restoreSession) { doShowEditorWindow(restoreSession); LightEditorInfo openEditorInfo = myEditorManager.findOpen(file); if (openEditorInfo == null) { LightEditorInfo newEditorInfo = myEditorManager.createEditor(file); if (newEditorInfo != null) { addEditorTab(newEditorInfo); LOG.info("Opened new tab for " + file.getPresentableUrl()); if (Boolean.TRUE.equals(file.getUserData(LightEditUtil.SUGGEST_SWITCH_TO_PROJECT))) { file.putUserData(LightEditUtil.SUGGEST_SWITCH_TO_PROJECT, null); if (!LightEditConfiguration.PreferredMode.LightEdit.equals(myConfiguration.preferredMode)) { suggestSwitchToProject(getOrCreateProject(), file); } } } else { processNotOpenedFile(file); } } else { selectEditorTab(openEditorInfo); LOG.info("Selected tab for " + file.getPresentableUrl()); } logStartupTime(); }