void (@NotNull PsiElement element) { JavaSimilarityComplexExpressionFeaturesExtractor complexExpressionFeaturesExtractor = new JavaSimilarityComplexExpressionFeaturesExtractor(myUsage, element); complexExpressionFeaturesExtractor .getFeatures() .getBag() .forEach((String token, Integer count) -> IntStream.range(0, count).forEach(i -> myUsageSimilarityFeaturesRecorder.addFeature(token))); }