void () { doTest(""" import java.io.*; class Test implements Serializable { protected Object /*'readResolve()' can be annotated with '@Serial' annotation*//*_*/readResolve/**/() throws ObjectStreamException { return 1; } }"""); checkQuickFix("Annotate method 'readResolve()' as '@Serial'", """ import java.io.*; class Test implements Serializable { @Serial protected Object readResolve() throws ObjectStreamException { return 1; } }"""); }