overload = argument.getOverload();
}
@Nullable
public DBArgument lookup(@NotNull ConnectionHandler connectionHandler) {
DBSchema schema = connectionHandler.getObjectBundle().getSchema(nodes[0].getName());
if (schema == null) return null;
DBMethod method;
Node programNode = getProgramNode();
Node methodNode = getMethodNode();
DBObjectType methodObjectType = methodNode.getType();
if (programNode != null) {
DBProgram program = schema.getProgram(programNode.getName());
if (program == null || program.getObjectType() != programNode.getType()) return null;
method = program.getMethod(methodNode.getName(), overload);
} else {
method = schema.getMethod(methodNode.getName(), methodObjectType.getName(), overload);
}
if (method == null) return null;
return method.getArgument(getArgumentNode().getName());