String (@NotNull String content) { PsiElementFactory factory = JavaPsiFacade.getElementFactory(getProject()); String blockText = "\"\"\"\n" + content + "\"\"\""; PsiLiteralExpression textBlock = (PsiLiteralExpression)factory.createExpressionFromText(blockText, null); return (String)textBlock.getValue(); }