if(messageLogger == null) {
throw new NullPointerException("messageLogger must not be null");
}
ResultsCollector results = new ResultsCollector();
SearchType searchType = SearchType.DEFINITION;
if (getSourceText){
searchType = SearchType.SOURCE_TEXT;
}
findDefinitionHelper(Collections.singletonList(targetIdentifier.getName()), results, searchType, messageLogger);