LightEditorInfo (@Nullable String preferredName) { String name = preferredName != null ? preferredName : getUniqueName(); LightVirtualFile file = new LightVirtualFile(name); file.setFileType(getFileType(preferredName)); return Objects.requireNonNull(doCreateEditor(file)); }