void (@NotNull PsiField field) { if (!field.hasModifierProperty(PsiModifier.STATIC)) { return; } final PsiType type = field.getType(); if (!CollectionUtils.isCollectionClassOrInterface(type)) { return; } if (m_ignoreWeakCollections && CollectionUtils.isWeakCollectionClass(type)) { return; } registerFieldError(field); }