void (boolean success) { super.moveOffsetAfter(success); if (success) { final PsiNamedElement renamedVariable = getVariable(); if (renamedVariable != null) { editor.getCaretModel().moveToOffset(renamedVariable.getTextRange().getEndOffset()); } } }