boolean (@Nullable PsiExpression embeddedExpression) { if (embeddedExpression instanceof PsiLiteralExpression literal && !literal.isTextBlock()) { Object value = literal.getValue(); return value instanceof String || String.valueOf(literal.getValue()).equals(literal.getText()); } return false; }