public static SourceLineBounds getSourceLineBounds(Program program, SourceFile sourceFile) {
		List<SourceMapEntry> entries =
			program.getSourceFileManager().getSourceMapEntries(sourceFile, 0, Integer.MAX_VALUE);
		if (entries.isEmpty()) {
			return null;
		}
		int min = Integer.MAX_VALUE;
		int max = -1;
		for (SourceMapEntry entry : entries) {
			int lineNum = entry.getLineNumber();
			if (lineNum < min) {
				min = lineNum;
			}
			if (lineNum > max) {
				max = lineNum;
			}
		}
		return new SourceLineBounds(min, max);
	}
Returns a {@link SourceLineBounds} record containing the minimum and maximum mapped line
for {@code sourceFile} in {@code program}.
@param program program
@param sourceFile source file
@return source line bounds or null
Ghidra/Features/Base/src/main/java/ghidra/util/SourceFileUtils.java