private static boolean isBooleanOrBoxed(PsiType type) {
    return PsiTypes.booleanType().equals(type) || PsiTypes.booleanType().equals(PsiPrimitiveType.getUnboxedType(type));
  }
private static boolean isBooleanOrBoxed(PsiType type)