@Override
    public void visitMethodReferenceExpression(@NotNull PsiMethodReferenceExpression expression) {
      if (!PsiReflectionAccessUtil.isAccessibleMethodReference(expression)) {
        myMethodReferencesToReplace.add(expression);
      }
    }
@Override
    public void visitMethodReferenceExpression(@NotNull PsiMethodReferenceExpression expression)