void (@NotNull Symbol target) { AstLoadingFilter.disallowTreeLoading(() -> { UsageRanges ranges = getUsageRanges(myFile, target); if (ranges == null) { return; } myReadAccessRanges.addAll(ranges.getReadRanges()); myReadAccessRanges.addAll(ranges.getReadDeclarationRanges()); myWriteAccessRanges.addAll(ranges.getWriteRanges()); myWriteAccessRanges.addAll(ranges.getWriteDeclarationRanges()); }, () -> "Currently highlighted file: \n" + "psi file: " + myFile + ";\n" + "virtual file: " + myFile.getVirtualFile()); }