void (@NotNull RefEntity refEntity) { if (refEntity instanceof RefJavaElementImpl refElement) { if (!((GlobalInspectionContextBase)context).isToCheckMember(refElement, UnusedDeclarationInspectionBase.this)) return; refElement.setReachable(false); } }