final PsiFile file = context.getContainingFile();
if (file == null) return false;
final Project project = context.getProject();
if (HtmlUtil.hasHtml(file)) return AngularIndexUtil.hasAngularJS(project);
final VirtualFile virtualFile = file.getOriginalFile().getVirtualFile();
final CssDialect mapping = CssDialectMappings.getInstance(project).getMapping(virtualFile);
return (mapping == null || mapping == CssDialect.CLASSIC) && AngularIndexUtil.hasAngularJS(project);
}