boolean (PsiExpression equalTo, PsiExpression from, PsiExpression to) { if (!ExpressionUtils.hasStringType(equalTo)) return false; String str = tryCast(ExpressionUtils.computeConstantExpression(equalTo), String.class); PsiElementFactory factory = JavaPsiFacade.getElementFactory(myHolder.getProject()); if (str != null) { PsiExpression lengthExpression = factory.createExpressionFromText(String.valueOf(str.length()), equalTo); if (ExpressionUtils.isDifference(from, to, lengthExpression)) return true; } PsiExpression lengthExpression = getLengthExpression(equalTo, factory); return ExpressionUtils.isDifference(from, to, lengthExpression); }