void (@Nullable PsiElement element, Set<PsiElement> checked, ProblemsHolder problemsHolder, final @InspectionMessage String message) { if (element == null) return; if (!checked.add(element)) return; if (isLocalAssignment(element) && isUsedInTopLevelFlowOnly(element) && !isIncOrDec(element)) { PsiElement toHighlight = getHighlightElement(element); problemsHolder.registerProblem(toHighlight, message); } }