if (references != null) {
for (SimpleReference simpleReference : references) {
if (simpleReference instanceof TypeReference) {
TypeReference typeReference = (TypeReference) simpleReference;
if (typeReference.sourceStart() <= offset
&& typeReference.sourceEnd() >= end) {
String name = typeReference.getName();
// remove additional end elements like '[]'
if (typeReference.sourceEnd() > end) {
int startShift = offset