FileEditor (@Nullable Project project) { DataManager dataManager = DataManager.getInstanceIfCreated(); if (dataManager == null) return null; @SuppressWarnings("deprecation") DataContext context = dataManager.getDataContext(); return PlatformCoreDataKeys.FILE_EDITOR.getData(context); }