Source:
<code>public boolean test(Object receiver, String property, Object[] args, Object expectedValue) { if (receiver instanceof ITask) { ITask task = (ITask) receiver; if (PROPERTY_CONNECTOR_KIND.equals(property)) { return task.getConnectorKind().equals(expectedValue); } else if (PROPERTY_CAN_POST_ATTACHMENT.equals(property)) { return equals(AttachmentUtil.canUploadAttachment(task), expectedValue); } else if (PROPERTY_CAN_GET_ATTACHMENT.equals(property)) { return equals(AttachmentUtil.canDownloadAttachment(task), expectedValue); } else if (PROPERTY_CAN_GET_HISTORY.equals(property)) { return TasksUiInternal.canGetTaskHistory(task); } else if (PROPERTY_HAS_ACTIVE_TIME.equals(property)) { return equals(TasksUiInternal.getActiveTime(task) > 0, expectedValue); } else if (PROPERTY_HAS_EDITS.equals(property)) { return equals(ClearOutgoingAction.hasOutgoingChanges(task), expectedValue); } else if (PROPERTY_HAS_LOCAL_CONTEXT.equals(property)) { return equals(AttachmentUtil.hasLocalContext(task), expectedValue); } else if (PROPERTY_HAS_REPOSITORY_CONTEXT.equals(property)) { return equals(AttachmentUtil.hasContextAttachment(task), expectedValue); } else if (PROPERTY_IS_COMPLETED.equals(property)) { return equals(task.isCompleted(), expectedValue); } else if (PROPERTY_IS_LOCAL.equals(property)) { return (task instanceof AbstractTask) && equals(((AbstractTask) task).isLocal(), expectedValue); } else if (PROPERTY_LOCAL_COMPLETION_STATE.equals(property)) { return equals(TasksUiInternal.hasLocalCompletionState(task), expectedValue); <START> } else if (PROPERTY_ISNT_ARTIFACT.equals(property)) { <END> String artifactFlag = task.getAttribute(ITasksCoreConstants.ATTRIBUTE_ARTIFACT); if (artifactFlag != null) { return artifactFlag.equals("false"); } return true; } } return false; }</code><technical_language>invert property PROPERTY_IS_ARTIFACT return Boolean.valueOf(artifactFlag) check null? clearer properties express a positive condition</technical_language>

Target:
public boolean test(Object receiver, String property, Object[] args, Object expectedValue) { if (receiver instanceof ITask) { ITask task = (ITask) receiver; if (PROPERTY_CONNECTOR_KIND.equals(property)) { return task.getConnectorKind().equals(expectedValue); } else if (PROPERTY_CAN_POST_ATTACHMENT.equals(property)) { return equals(AttachmentUtil.canUploadAttachment(task), expectedValue); } else if (PROPERTY_CAN_GET_ATTACHMENT.equals(property)) { return equals(AttachmentUtil.canDownloadAttachment(task), expectedValue); } else if (PROPERTY_CAN_GET_HISTORY.equals(property)) { return TasksUiInternal.canGetTaskHistory(task); } else if (PROPERTY_HAS_ACTIVE_TIME.equals(property)) { return equals(TasksUiInternal.getActiveTime(task) > 0, expectedValue); } else if (PROPERTY_HAS_EDITS.equals(property)) { return equals(ClearOutgoingAction.hasOutgoingChanges(task), expectedValue); } else if (PROPERTY_HAS_LOCAL_CONTEXT.equals(property)) { return equals(AttachmentUtil.hasLocalContext(task), expectedValue); } else if (PROPERTY_HAS_REPOSITORY_CONTEXT.equals(property)) { return equals(AttachmentUtil.hasContextAttachment(task), expectedValue); } else if (PROPERTY_IS_COMPLETED.equals(property)) { return equals(task.isCompleted(), expectedValue); } else if (PROPERTY_IS_LOCAL.equals(property)) { return (task instanceof AbstractTask) && equals(((AbstractTask) task).isLocal(), expectedValue); } else if (PROPERTY_LOCAL_COMPLETION_STATE.equals(property)) { return equals(TasksUiInternal.hasLocalCompletionState(task), expectedValue); } else if (PROPERTY_IS_ARTIFACT.equals(property)) { String artifactFlag = task.getAttribute(ITasksCoreConstants.ATTRIBUTE_ARTIFACT); return Boolean.valueOf(artifactFlag); } } return false; }