void (@NotNull RefEntity elem) { CommonProblemDescriptor[] elemDescriptors = globalTool.checkElement(elem, scope, inspectionManager, inspectionContext); if (elemDescriptors != null) { convertToProblemDescriptors(psiFile, elemDescriptors, result); } for (RefEntity child : elem.getChildren()) { child.accept(this); } }