boolean (Project project, VirtualFile file) { IdeDocumentHistory documentHistory = IdeDocumentHistory.getInstance(project); return documentHistory instanceof IdeDocumentHistoryImpl && ((IdeDocumentHistoryImpl)documentHistory).isRecentlyChanged(file); }