boolean (PsiElement element) { if (!(element instanceof PsiExpressionStatement)) { return false; } final PsiStatement statement = (PsiStatement)element; final PsiStatement nextSibling = PsiTreeUtil.getNextSiblingOfType(statement, PsiStatement.class); if (nextSibling == null) { return false; } final PsiVariable variable1 = getVariable(statement); if (variable1 == null) { return false; } final PsiVariable variable2 = getVariable(nextSibling); return variable1.equals(variable2); }