public void registerReusedElement(@Nullable PsiElement element) {
    if (element == null) return;
    element.accept(new JavaRecursiveElementVisitor() {
      @Override
      public void visitVariable(@NotNull PsiVariable variable) {
        super.visitVariable(variable);
        myUsedNames.add(variable.getName());
      }
    });
    myCommentTracker.markUnchanged(element);
  }
public void registerReusedElement(@Nullable PsiElement element)