void (PsiLoopStatement statement) { if (statement instanceof PsiDoWhileStatement) { PsiKeyword whileKeyword = ((PsiDoWhileStatement)statement).getWhileKeyword(); if (whileKeyword != null) { addOccurrence(whileKeyword); } } else { addOccurrence(statement.getFirstChild()); } }