void () { StringBuilder text = new StringBuilder(65536).append("class X { String s = \"\""); for (int i = 0; i < 10000; i++) text.append(" + \"\""); text.append("; }"); PsiJavaFile file = (PsiJavaFile)myFixture.configureByText("a.java", text.toString()); PsiField field = file.getClasses()[0].findFieldByName("s", false); assertNotNull(field); assertEquals("", JavaConstantExpressionEvaluator.computeConstantExpression(field.getInitializer(), false)); }