LightEditorInfo (@Nullable Path preferredSavePath) { showEditorWindow(); String preferredName = preferredSavePath == null ? null : preferredSavePath.getFileName().toString(); LightEditorInfo newEditorInfo = myEditorManager.createEmptyEditor(preferredName); newEditorInfo.setPreferredSavePath(preferredSavePath); addEditorTab(newEditorInfo); return newEditorInfo; }