void (@NotNull LocalInspectionToolSession session, @NotNull ProblemsHolder holder) { final PyUnusedLocalInspectionVisitor visitor = session.getUserData(KEY); if (visitor != null) { ReadAction.run(() -> visitor.registerProblems()); session.putUserData(KEY, null); } }