void (@NotNull PsiVariable variable, CommentTracker tracker) { final PsiDeclarationStatement declaration = (PsiDeclarationStatement)variable.getParent(); if (declaration == null) { return; } final PsiElement[] declaredElements = declaration.getDeclaredElements(); if (declaredElements.length == 1) { tracker.delete(declaration); } else { tracker.delete(variable); } }