int priority = HIGH_PRIORITY;
if (targetPackage.equals(alternativePackage)) priority++;
if (targetPackage.startsWith("javax.swing") || targetPackage.startsWith("java.awt"))
priority+=2;
if (invokedMethod.getName().equals(getMethodName())) priority++;
<BUG>bugReporter.reportBug(new BugInstance(this, "IA_AMBIGUOUS_INVOCATION_OF_INHERITED_OR_OUTER_METHOD", priority)
</BUG>
.addClassAndMethod(this)
.addMethod(invokedMethod).describe("METHOD_INHERITED")
<BUG>.addMethod(alternativeMethod).describe("METHOD_ALTERNATIVE_TARGET")

.addSourceLine(this, getPC()));</BUG>
break;

int priority = HIGH_PRIORITY;
if (targetPackage.equals(alternativePackage)) priority++;
if (targetPackage.startsWith("javax.swing") || targetPackage.startsWith("java.awt"))
priority+=2;
if (invokedMethod.getName().equals(getMethodName())) priority++;
bugAccumulator.accumulateBug(new BugInstance(this, "IA_AMBIGUOUS_INVOCATION_OF_INHERITED_OR_OUTER_METHOD", priority)
.addClassAndMethod(this)
.addMethod(invokedMethod).describe("METHOD_INHERITED")
.addMethod(alternativeMethod).describe("METHOD_ALTERNATIVE_TARGET"), this);
break;
