UFunction pointer creation from c++ code

How to create a simple pointer to UFunction class?
The purpose of that is to have a function signature template used for automation of creating function graph in Blueprint Editor.

For now I have:

UFunction* myFun = NULL;

  UEdGraph* NewGraph = FBlueprintEditorUtils::CreateNewGraph(Blueprint, TEXT("AbC"), UEdGraph::StaticClass(), UEdGraphSchema_K2::StaticClass());
  FBlueprintEditorUtils::AddFunctionGraph<UFunction>(Blueprint, NewGraph, true, myFun);

myFun should be a UFunction pointer with specific signature (parameters and return value) to be used as a last parameter for AddFunctionGraph execution which will create new function graph from myFun as a template.
With NULL pointer the function is created as a void AbC();

If you have valid pointer to object containing that function, then it’s as simple as:

UObject* Object;

// Populating Object pointer

const FName FunctionName = TEXT("Abc");
UFunction* Function = Object->FindFunction(FunctionName);

I think you shouild be able to get that object from your Blueprint variable.