List<Integer> (byte @NotNull [] classBytes) { List<Integer> lineNumbers = new ArrayList<>(); ClassVisitor visitor = new ClassVisitor(Opcodes.API_VERSION) { @Override public MethodVisitor visitMethod(int access, String name, String descriptor, String signature, String[] exceptions) { return new MethodVisitor(Opcodes.API_VERSION) { @Override public void visitLineNumber(int line, Label start) { lineNumbers.add(line); } }; } }; ClassReader reader = new ClassReader(classBytes); reader.accept(visitor, 0); return lineNumbers; }