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