private boolean isProjectMethod(final InvokeInstruction instruction) {
        final MethodIdentifier identifier = instruction.getIdentifier();

        // check if method is in own package
        return identifier.getContainingClass().startsWith(projectPackagePrefix);
    }
private boolean isProjectMethod ( final InvokeInstruction instruction ) { final MethodIdentifier identifier = instruction . getIdentifier ( ) ; return identifier . getContainingClass ( ) . startsWith ( projectPackagePrefix ) ; }
Checks if the given instruction invokes a method defined in the analyzed project.

@param instruction The invoke instruction
@return {@code true} if method was defined in the project