}
@NotNull
@Override
public SearchScope getUseScope() {
final DartComponentType type = DartComponentType.typeOf(getParent());
final DartComponent component = PsiTreeUtil.getParentOfType(getParent(), DartComponent.class, true);
final boolean localType = type == DartComponentType.FUNCTION
|| type == DartComponentType.PARAMETER
|| type == DartComponentType.VARIABLE;
if (localType && component != null) {