private static Integer findFirstLineNumber(final TypeDefinition type) {
int minLineNumber = Integer.MAX_VALUE;
for (final MethodDefinition method : type.getDeclaredMethods()) {
final LineNumberTableAttribute attribute = SourceAttribute.find(AttributeNames.LineNumberTable, method.getSourceAttributes());
if (attribute != null && !attribute.getEntries().isEmpty()) {
final int firstLineNumber = attribute.getEntries().get(0).getLineNumber();
if (firstLineNumber < minLineNumber) {
minLineNumber = firstLineNumber;
}
}