void (@NotNull PsiIdentifier identifier) { PsiElement parent = identifier.getParent(); if (parent instanceof PsiClass) { replaceElement(identifier, classCount, true, builder, shift.get()); } else if (parent instanceof PsiReferenceExpression) { if (parent.getParent() instanceof PsiMethodCallExpression) replaceElement(identifier, funCount, true, builder, shift.get()); else replaceElement(identifier, varCount, false, builder, shift.get()); } else if (parent instanceof PsiJavaCodeReferenceElement) { replaceElement(identifier, classCount, false, builder, shift.get()); } }