void () { doTest("import java.io.Serializable;\n" + "record <warning descr=\"Record can be converted to class\"><caret>R</warning>() implements Serializable {\n" + " static long number = 10;\n" + " @MyAnn\n" + " private static long serialVersionUID = 10;\n" + // not final "}"); checkQuickFix("Convert record to class", """ import java.io.Serializable; final class R implements Serializable { static long number = 10; @MyAnn private static long serialVersionUID = 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[]"; } }"""); }