private int getJavaLine(final JavaElement je, final String wid) {
Assert.isNotNull(je);
try {
if (je instanceof ResolvedBinaryType) {
ResolvedBinaryType rbt = (ResolvedBinaryType) je;
String source = rbt.getSource(); // try to get the source
// shorten search for know wicket:ids
if ((je.getElementName().equals("FilterToolbar") && ("focus-tracker".equals(wid) || "focus-restore".equals(wid)))
|| ("cols".equals(wid) && je.getElementName().equals("GridView"))) {
return 1;
}