17
17
18
18
import lombok .AllArgsConstructor ;
19
19
import lombok .Data ;
20
- import org .jetbrains .annotations .NotNull ;
21
20
import org .jetbrains .kotlin .KtFakeSourceElement ;
22
21
import org .jetbrains .kotlin .KtRealPsiSourceElement ;
23
22
import org .jetbrains .kotlin .KtSourceElement ;
@@ -133,7 +132,7 @@ public static String printFirFile(FirFile file) {
133
132
TreePrinterContext context = new TreePrinterContext (lines , 1 );
134
133
new FirDefaultVisitor <Void , TreePrinterContext >() {
135
134
@ Override
136
- public Void visitElement (@ NotNull FirElement firElement , TreePrinterContext ctx ) {
135
+ public Void visitElement (FirElement firElement , TreePrinterContext ctx ) {
137
136
StringBuilder line = new StringBuilder ();
138
137
line .append (leftPadding (ctx .getDepth ()))
139
138
.append (printFirElement (firElement ));
@@ -164,7 +163,7 @@ public static String printFirTree(FirElement firElement) {
164
163
TreePrinterContext context = new TreePrinterContext (lines , 1 );
165
164
new FirDefaultVisitor <Void , TreePrinterContext >() {
166
165
@ Override
167
- public Void visitElement (@ NotNull FirElement fir , TreePrinterContext ctx ) {
166
+ public Void visitElement (FirElement fir , TreePrinterContext ctx ) {
168
167
StringBuilder line = new StringBuilder ();
169
168
line .append (leftPadding (ctx .getDepth ()))
170
169
.append (printFirElement (fir ));
@@ -190,7 +189,7 @@ public Void visitElement(@NotNull FirElement fir, TreePrinterContext ctx) {
190
189
}
191
190
192
191
public static class IrPrinter {
193
- public void printElement (@ NotNull IrElement element , @ NotNull PsiTreePrinter .TreePrinterContext ctx ) {
192
+ public void printElement (IrElement element , PsiTreePrinter .TreePrinterContext ctx ) {
194
193
StringBuilder line = new StringBuilder ();
195
194
line .append (leftPadding (ctx .getDepth ()))
196
195
.append (printIrElement (element ));
0 commit comments