PsiLocalVariable () { final PsiLocalVariable localVariable = PsiTreeUtil.getParentOfType(getFile().findElementAt(getEditor().getCaretModel().getOffset()), PsiLocalVariable.class); assertNotNull(localVariable); return localVariable; }