public static List<IMarker> getWarningMarkers(IResource resource) throws CoreException { return findMarkers(resource, IMarker.SEVERITY_WARNING); }
public static List<IMarker> getErrorMarkers(IResource resource) throws CoreException { return findMarkers(resource, IMarker.SEVERITY_ERROR); }