* instead of showing a user spent x amount of time on the field, we show that
* a user spent x amount of time on the field's parent type.
*/
@Test
public void testFilter_exsitingElement_field() throws Exception {
JavaEditor editor = closeAndOpenEditor();
IDocument document = getDocument(editor);
String fieldName = "aFieldName";
String methodText = format("private int %s = 1;", fieldName);
int offset = document.get().indexOf("{") + 1;
int len = 0;
document.replace(offset, len, methodText);
offset = document.get().indexOf(fieldName);
len = fieldName.length();
editor.getSelectionProvider().setSelection(new TextSelection(offset, len));
IJavaElement element = getElementAtOffset(editor);
assertEquals(IJavaElement.FIELD, element.getElementType());
long preStart = System.currentTimeMillis();