String () { return """ /* Block comment */ import <class>java.util.Date</class>; /** * Doc comment here for <code>SomeClass</code> * @param <javadocTagValue>T</javadocTagValue> type parameter * @see <class>Math</class>#<methodCall>sin</methodCall>(double) */ <annotationName>@Annotation</annotationName> (<annotationAttributeName>name</annotationAttributeName>=value) public class <class>SomeClass</class><<typeParameter>T</typeParameter> extends <interface>Runnable</interface>> { // some comment private <typeParameter>T</typeParameter> <field>field</field> = null; private double <unusedField>unusedField</unusedField> = 12345.67890; private <unknownType>UnknownType</unknownType> <field>anotherString</field> = "Another\\nStrin\\g"; public static int <static>staticField</static> = 0; public final int <instanceFinalField>instanceFinalField</instanceFinalField> = 0; public <constructorDeclaration>SomeClass</constructorDeclaration>(<interface>AnInterface</interface> <param>param</param>, int[] <reassignedParameter>reassignedParam</reassignedParameter>) { <error>int <localVar>localVar</localVar> = "IntelliJ"</error>; // Error, incompatible types <class>System</class>.<static>out</static>.<methodCall>println</methodCall>(<field>anotherString</field> + <inherited_method>toString</inherited_method>() + <localVar>localVar</localVar>); long <localVar>time</localVar> = <class>Date</class>.<static_method><deprecated>parse</deprecated></static_method>("1.2.3"); // Method is deprecated int <reassignedLocalVar>reassignedValue</reassignedLocalVar> = this.<warning>staticField</warning>;\s <reassignedLocalVar>reassignedValue</reassignedLocalVar> ++;\s <field>field</field>.<abstract_method>run</abstract_method>();\s new <anonymousClass>SomeClass</anonymousClass>() { { int <localVar>a</localVar> = <implicitAnonymousParameter>localVar</implicitAnonymousParameter>; } }; <reassignedParameter>reassignedParam</reassignedParameter> = new <constructorCall>ArrayList</constructorCall><<class>String</class>>().toArray(new int[0]); } } enum <enum>AnEnum</enum> { <static_final>CONST1</static_final>, <static_final>CONST2</static_final> } interface <interface>AnInterface</interface> { int <static_final>CONSTANT</static_final> = 2; void <methodDeclaration>method</methodDeclaration>(); } abstract class <abstractClass>SomeAbstractClass</abstractClass> { }"""; }