Project (@NotNull VirtualFile file) { Project project = myLightEditProjectManager.getOrCreateProject(); LightEditUtil.LightEditCommandLineOptions commandLineOptions = LightEditUtil.getCommandLineOptions(); doWhenActionManagerInitialized(() -> { doOpenFile(file, commandLineOptions == null || !commandLineOptions.shouldWait()); }); return project; }