Object (@NotNull @NonNls String dataId) { if (PlatformCoreDataKeys.BGT_DATA_PROVIDER.is(dataId)) { Tree tree = myTree; if (tree == null) { return null; } final TreePath[] paths = tree.getSelectionPaths(); final TreePath leadPath = tree.getLeadSelectionPath(); final AntBuildFile currentBuildFile = getCurrentBuildFile(); return (DataProvider)id -> getSlowData(id, paths, leadPath, currentBuildFile); } else if (PlatformCoreDataKeys.HELP_ID.is(dataId)) { return HelpID.ANT; } else if (PlatformDataKeys.TREE_EXPANDER.is(dataId)) { return myProject != null? myTreeExpander : null; } return super.getData(dataId); }