void () { configureFromFileText("A.java", "class <caret>A {}"); DataContext dc = createAsyncDataContext(new EdtDataContext(getContextComponent())); List<DocumentationTarget> targets = dc.getData(DOCUMENTATION_TARGETS); assertInstanceOf(assertOneElement(targets), PsiElementDocumentationTarget.class); }