boolean () { final PsiCaseLabelElementList elementList = getCaseLabelElementList(); if (elementList == null) return false; final PsiCaseLabelElement[] elements = elementList.getElements(); if (elements.length == 1) return true; else if (elements.length > 2 || elements.length == 0) return false; final PsiElement first = stripParensIfNecessary(elements[0]); final PsiElement second = stripParensIfNecessary(elements[1]); if (first == null || second == null) return true; return firstPatternVariableSecondNull(first, second) || firstPatternVariableSecondNull(second, first); }