Code simplified

This commit is contained in:
Andrey Breslav
2013-08-27 18:35:36 +04:00
parent 7920321e3d
commit ff13ba87ac
@@ -88,12 +88,7 @@ public class BindingContextUtils {
return Lists.newArrayList(bindingContext.get(BindingContext.LABEL_TARGET, referenceExpression));
}
List<PsiElement> elements = descriptorToDeclarations(bindingContext, declarationDescriptor);
if (elements.size() > 0) {
return elements;
}
return Lists.newArrayList();
return descriptorToDeclarations(bindingContext, declarationDescriptor);
}