public static TailType forSwitchLabel(@NotNull PsiSwitchBlock block) {
    boolean ruleFormatSwitch = SwitchUtils.isRuleFormatSwitch(block);
    if (ruleFormatSwitch) {
      //for not completed code with `:`
      final PsiCodeBlock switchBody = block.getBody();
      if (switchBody != null) {
        for (var child = switchBody.getFirstChild(); child != null; child = child.getNextSibling()) {
          if (child instanceof PsiErrorElement &&
              ContainerUtil.exists(child.getChildren(), t -> t instanceof PsiJavaToken && ((PsiJavaToken)t).getTokenType() == COLON)) {
            return TailTypes.caseColonType();
          }
        }
      }
    }
    return ruleFormatSwitch ? CASE_ARROW : TailTypes.caseColonType();
  }
public static TailType forSwitchLabel(@NotNull PsiSwitchBlock block)