void () { doTest(""" import java.io.Serial; import java.io.Serializable; record <warning descr="Record can be converted to class"><caret>R</warning>() implements Serializable { @Serial @MyAnn private static final long serialVersionUID = 1; static long number = 10; }"""); checkQuickFix("Convert record to class", """ import java.io.Serial; import java.io.Serializable; final class R implements Serializable { @Serial @MyAnn private static final long serialVersionUID = 1; static long number = 10; R() { } @Override public boolean equals(Object obj) { return obj == this || obj != null && obj.getClass() == this.getClass(); } @Override public int hashCode() { return 1; } @Override public String toString() { return "R[]"; } }"""); }