void () { SliceTreeStructure treeStructure = configureTree(getTestName(false)); SliceRootNode root = treeStructure.getRootElement(); SliceLeafAnalyzer analyzer = JavaSlicerAnalysisUtil.createLeafAnalyzer(); Map<SliceNode, Collection<PsiElement>> map = analyzer.createMap(); Collection<PsiElement> leaves = analyzer.calcLeafExpressions(root, treeStructure, map); assertEquals(2, leaves.size()); Set<String> names = ContainerUtil.map2Set(leaves, PsiElement::getText); assertEquals(ContainerUtil.newHashSet("\"uuu\"", "\"xxx\""), names); }