final PsiElement resolved = ((DartReference)element).resolve(); // todo this takes too much time
final PsiElement elementParent = element.getParent();
if (resolved != null && elementParent instanceof DartCallExpression) {
final PsiElement parent = resolved.getParent();
if (parent instanceof DartFunctionDeclarationWithBodyOrNative) {
<BUG>createInfoAnnotation(holder, element, DartSyntaxHighlighterColors.DART_TOP_LEVEL_FUNCTION_CALL);
} else if (parent instanceof DartMethodDeclaration) {
final String callType =</BUG>
((DartMethodDeclaration)parent).isStatic() ? DartSyntaxHighlighterColors.DART_STATIC_MEMBER_FUNCTION_CALL
: DartSyntaxHighlighterColors.DART_INSTANCE_MEMBER_FUNCTION_CALL;

final PsiElement resolved = ((DartReference)element).resolve(); // todo this takes too much time
final PsiElement elementParent = element.getParent();
if (resolved != null && elementParent instanceof DartCallExpression) {
final PsiElement parent = resolved.getParent();
if (parent instanceof DartFunctionDeclarationWithBodyOrNative) {
createInfoAnnotation(holder, element, DartSyntaxHighlighterColors.DART_TOP_LEVEL_FUNCTION_CALL);
}
else if (parent instanceof DartMethodDeclaration) {
final String callType =
((DartMethodDeclaration)parent).isStatic() ? DartSyntaxHighlighterColors.DART_STATIC_MEMBER_FUNCTION_CALL
: DartSyntaxHighlighterColors.DART_INSTANCE_MEMBER_FUNCTION_CALL;
