final VirtualFile virtualFile = declaration == null ? null : declaration.getContainingFile().getVirtualFile();
if (virtualFile == null ||
ProjectRootManager.getInstance(declaration.getProject()).getFileIndex().getSourceRootForFile(virtualFile) == null) {
return;
}
<BUG>if (declaration instanceof JSClass) {
final FixAndIntentionAction fix1 = new CreateFieldByMxmlAttributeFix(name, attribute.getValue());
fix1.registerElementRefForFix(attribute, null);
QuickFixAction.registerQuickFixAction(highlightInfo, fix1);
}</BUG>
}

final VirtualFile virtualFile = declaration == null ? null : declaration.getContainingFile().getVirtualFile();
if (virtualFile == null ||
ProjectRootManager.getInstance(declaration.getProject()).getFileIndex().getSourceRootForFile(virtualFile) == null) {
return;
