}
public static boolean hasEditingHistory(VirtualFile virtualFile, Project project) {
FileEditorProviderManager editorProviderManager = FileEditorProviderManager.getInstance();
FileEditorProvider[] providers = editorProviderManager.getProviders(project, virtualFile);
FileEditorState editorState = EditorHistoryManager.getInstance(project).getState(virtualFile, providers[0]);
return editorState != null;
}