navigating_psi.md: Add @NotNull annotation to code snippet

This commit is contained in:
Karol Lewandowski 2023-10-18 16:30:11 +02:00
parent 7bd389f6fc
commit 89a115b308

View File

@ -23,7 +23,7 @@ The following snippet shows the use of a visitor to find all Java local variable
```java
file.accept(new JavaRecursiveElementVisitor() {
@Override
public void visitLocalVariable(PsiLocalVariable variable) {
public void visitLocalVariable(@NotNull PsiLocalVariable variable) {
super.visitLocalVariable(variable);
System.out.println("Found a variable at offset " +
variable.getTextRange().getStartOffset());