void (@NotNull PsiMethodCallExpression methodCall, @NotNull ProblemsHolder holder) { String referenceName = methodCall.getMethodExpression().getReferenceName(); if ("load".equals(referenceName) || "loadInstalled".equals(referenceName)) { PsiMethod method = methodCall.resolveMethod(); if (method != null && method.hasModifierProperty(PsiModifier.STATIC)) { PsiClass containingClass = method.getContainingClass(); if (containingClass != null && "java.util.ServiceLoader".equals(containingClass.getQualifiedName())) { checkServiceUsage(methodCall, holder); } } } }