private static boolean isBooleanType(PsiType type) {
    return PsiTypes.booleanType().equals(type) || type != null && type.equalsToText(CommonClassNames.JAVA_LANG_BOOLEAN);
  }
private static boolean isBooleanType(PsiType type)