private static boolean belongsToControlStructures(PsiElement e) {
    PsiElement p = e.getParent();

    return p instanceof PsiIfStatement
           || p instanceof PsiLoopStatement
           || p instanceof PsiTryStatement
           || p instanceof PsiCatchSection
           || p instanceof PsiSwitchLabeledRuleStatement;
  }
private static boolean belongsToControlStructures(PsiElement e)