void (@NotNull PsiElement element, @Nullable String tokenFeature) { if (tokenFeature == null) { tokenFeature = PsiUtilCore.getElementType(element).toString(); } if (Registry.is("similarity.distinguish.usages.in.one.statement")) { tokenFeature = (isInSameTreeAsUsage(element) ? "USAGE: " : "CONTEXT: ") + tokenFeature; } myFeatures.add(tokenFeature); if (element == myInitialContext) { return; } PsiElement parent = element.getParent(); if (parent != myInitialContext) { addParentFeatures(parent, tokenFeature, "GP:"); } addParentFeatures(element, tokenFeature, "P:"); addSiblingFeatures(element, tokenFeature); }