boolean (UsageInfo[] usages) { for (UsageInfo usage : usages) { if (usage instanceof InternalUsageInfo internalUsageInfo && internalUsageInfo.isInsideAnonymous() && (!(internalUsageInfo.getReferencedElement() instanceof PsiField field) || mySettings.getNameForField(field) == null)) { return true; } } return false; }