public static boolean isBooleanCompatible(PsiType samType) {
    return PsiTypes.booleanType().equals(samType) || TypeConversionUtil.isAssignableFromPrimitiveWrapper(TypeConversionUtil.erasure(samType));
  }
public static boolean isBooleanCompatible(PsiType samType)