private static boolean isCharacter(@Nullable PsiExpression expression) {
      return ExpressionUtils.hasType(expression, PsiKeyword.CHAR) ||
             ExpressionUtils.hasType(expression, CommonClassNames.JAVA_LANG_CHARACTER);
    }
private static boolean isCharacter(@Nullable PsiExpression expression)