void (@NotNull PsiMethodCallExpression expression) { super.visitMethodCallExpression(expression); final String methodName = expression.getMethodExpression().getReferenceName(); if (methodName == null || !methodName.equals(SET_CORE_POOL_SIZE_METHOD_NAME)) return; final PsiExpression arg = getZeroArgument(expression.getArgumentList()); if (arg == null) return; final PsiExpression qualifier = expression.getMethodExpression().getQualifierExpression(); final TypeConstraint constraint = TypeConstraint.fromDfType(CommonDataflow.getDfType(qualifier)); final PsiType type = constraint.getPsiType(expression.getProject()); if (!TypeUtils.typeEquals(SCHEDULED_THREAD_POOL_EXECUTOR_CLASS_NAME, type)) return; holder.registerProblem(arg, JavaBundle.message("scheduled.thread.pool.executor.with.zero.core.threads.description"), ProblemHighlightType.WARNING); }