void (@NotNull PsiMethod method) { super.visitMethod(method); if (ignorePrivateMethodsAndFields && method.hasModifierProperty(PsiModifier.PRIVATE)) { return; } if (isOnTheFly() && DeclarationSearchUtils.isTooExpensiveToSearch(method, false)) { registerPossibleProblem(method.getNameIdentifier()); return; } final PsiType type = method.getReturnType(); if (!CollectionUtils.isConcreteCollectionClass(type) || LibraryUtil.isOverrideOfLibraryMethod(method)) { return; } checkToWeaken(type, method.getReturnTypeElement(), method); }