private static final int NG_VARIABLE_PRIORITY = VariantsProcessor.LookupPriority.LOCAL_SCOPE_MAX_PRIORITY;
@Override
public void fillCompletionVariants(@NotNull final CompletionParameters parameters, @NotNull final CompletionResultSet result) {
if (!getElementLanguage(parameters).is(AngularJSLanguage.INSTANCE)) return;
PsiReference ref = parameters.getPosition().getContainingFile().findReferenceAt(parameters.getOffset());
if (ref instanceof JSReferenceExpressionImpl && ((JSReferenceExpressionImpl)ref).getQualifier() == null) {
final PsiElement parent = ((JSReferenceExpressionImpl)ref).getParent();
if (addFilterVariants(result, ref, parent)) return;
if (addControllerVariants(result, ref, parent)) return;