List<StreamChain> () { return ApplicationManager.getApplication().runReadAction((Computable<List<StreamChain>>)() -> { final PsiElement elementAtCaret = configureAndGetElementAtCaret(); assertNotNull(elementAtCaret); final StreamChainBuilder builder = getChainBuilder(); assertFalse(builder.isChainExists(elementAtCaret)); return builder.build(elementAtCaret); }); }