}
	public static void createMarker(BugInstance bug, IProject project) {		String className = null;		String packageName = null;		if (bug.getPrimaryClass() != null) {			className = bug.getPrimaryClass().getClassName();			packageName = bug.getPrimaryClass().getPackageName();		}		if (Reporter.DEBUG) {			System.out.println("BUG in class: " //$NON-NLS-1$			+ packageName + "." //$NON-NLS-1$			+ className + ": \n\t" //$NON-NLS-1$			+ bug.getMessage() + " / Annotation: " //$NON-NLS-1$			+ bug.getAnnotationText() + " / Source Line: " //$NON-NLS-1$			+ bug.getPrimarySourceLineAnnotation());		}		IResource resource = null;		try {			resource = getUnderlyingResource(bug, project);		}		catch (JavaModelException e1) {			FindbugsPlugin.getDefault().logException(					e1, "Could not find class resource for FindBugs warning");		}		if (resource != null) {			// default - first class line			int startLine = 1;			if (bug.getPrimarySourceLineAnnotation() != null)				  startLine = bug.getPrimarySourceLineAnnotation().getStartLine();			/* TODO: DHH - Eclipse can help us find the line number for fields.			 * Need a way to distinguish bugs where the field is the primary item			 * of interest.			 */			if (Reporter.DEBUG) {				System.out.println("Creating marker for " //$NON-NLS-1$				+ resource.getLocation() + ": line " //$NON-NLS-1$				+ startLine);			}			try {				project.getWorkspace().run(					new MarkerReporter(bug, resource, startLine), // action					null,  // scheduling rule (null if there are no scheduling restrictions)					0,     // flags (could specify IWorkspace.AVOID_UPDATE)					null); // progress monitor (null if progress reporting is not desired)			}			catch (CoreException e) {				e.printStackTrace();			}		}	}