void (@NotNull PsiMethodCallExpression expression) { if (GuavaPredicateConversionRule.isPredicates(expression) && isPossibleToConvertPredicate(expression)) { final PsiClassType initialType = (PsiClassType)expression.getType(); if (initialType == null) return; PsiClassType targetType = createTargetType(initialType); if (targetType == null) return; final PsiElement anchor = expression.getMethodExpression().getReferenceNameElement(); assert anchor != null; holder.registerProblem(anchor, TypeMigrationBundle.message("guava.functional.primitives.can.be.replaced.by.java.api.problem.description"), new MigrateGuavaTypeFix(expression, targetType)); } }