private static boolean isMethodReferenceArgCandidate(PsiExpression arg) {
    arg = PsiUtil.skipParenthesizedExprDown(arg);
    return arg instanceof PsiReferenceExpression ref && ref.getQualifier() == null;
  }
private static boolean isMethodReferenceArgCandidate(PsiExpression arg)