boolean (@NotNull VirtualFile file, @NotNull Project project) { FileEditorManager manager = project.isDisposed() ? null : FileEditorManager.getInstance(project); return manager != null && manager.isFileOpen(file); }