void (@NotNull PsiMethod method) { super.visitMethod(method); if (!checkReturnTypes) return; final PsiType targetType = getConversionClassType(method.getReturnType()); if (targetType != null) { final PsiTypeElement typeElement = method.getReturnTypeElement(); if (typeElement != null) { holder.registerProblem(typeElement, TypeMigrationBundle.message("guava.functional.primitives.can.be.replaced.by.java.api.problem.description"), new MigrateGuavaTypeFix(method, targetType)); } } }