Object (@NotNull String dataId) { if (CommonDataKeys.VIRTUAL_FILE.is(dataId)) { return myFile; } if (PlatformCoreDataKeys.BGT_DATA_PROVIDER.is(dataId)) { return (DataProvider)slowId -> getSlowData(slowId); } return null; }