Instruction ins = location.getHandle().getInstruction();
BugAnnotation cause;
final ConstantPoolGen cpg = classContext.getConstantPoolGen();
if (ins instanceof InvokeInstruction) {
InvokeInstruction iins = (InvokeInstruction) ins;
XMethod invokedMethod = XFactory.createXMethod((InvokeInstruction) ins, cpg);
cause = MethodAnnotation.fromXMethod(invokedMethod);
cause.setDescription(MethodAnnotation.METHOD_CALLED);
if (iins.getMethodName(cpg).equals("close") && iins.getSignature(cpg).equals("()V")) {
propertySet.addProperty(NullDerefProperty.CLOSING_NULL);
}
} else if (ins instanceof FieldInstruction) {
FieldInstruction fins = (FieldInstruction) ins;
XField referencedField = XFactory.createXField(fins, cpg);