[Demonstration 1]

[Buggy Method]
public List<GenomicRegion> getRegions() throws ParseException {
    return mRegionsPanel.getRegions();
}

[Buggy Hunk]
public List<GenomicRegion> getRegions() throws ParseException {

[Patch]
public List<GenomicRegion> getRegions() {

[Demonstration 2]

[Buggy Method]
protected Target findTarget() {
    Location source = getEyeLocation();
    TargetType targetType = targeting.getTargetType();
    boolean isBlock = targetType == TargetType.BLOCK || targetType == TargetType.SELECT;
    if (!isBlock && targetEntity != null) {
        return new Target(source, targetEntity);
    }
    if (targetType != TargetType.SELF && targetLocation != null) {
        return new Target(source, targetLocation.getBlock());
    }
    Target target = targeting.advance(currentCast, getMaxRange());
    return targeting.getResult() == Targeting.TargetingResult.MISS && !allowMaxRange ? new Target(source) : target;
}

[Buggy Hunk]
Target target = targeting.advance(currentCast, getMaxRange());

[Patch]
Target target = targeting.target(currentCast, getMaxRange());

[Demonstration 3]

[Buggy Method]
public static List<Region> getRegions(final StateMachine stateMachine) {
    final List<Region> result = new ArrayList<Region>();
    final EList<Region> regions = stateMachine.getRegions();
    for (final Region region : regions) {
        result.add(region);
    }
    return result;
}

[Buggy Hunk]
final List<Region> result = new ArrayList<Region>();

[Patch]
final List<Region> result = new ArrayList<>();