void (@NotNull GenericType returnType) { final PsiElement elementAtCaret = configureAndGetElementAtCaret(); assertNotNull(elementAtCaret); final List<StreamChain> chains = getChainBuilder().build(elementAtCaret); assertEquals(1, chains.size()); final StreamChain chain = chains.get(0); assertNotNull(chain); assertEquals(returnType, chain.getTerminationCall().getResultType()); }