private fun generateImplementsParcelableInterface(targetPsiClass: PsiClass) { val referenceElement: PsiJavaCodeReferenceElement = factory.createReferenceFromText(PARCELABLE_CLASS_SIMPLE_NAME, null) val implementsList: PsiReferenceList = targetPsiClass.getImplementsList() if (null != implementsList) { implementsList.add(referenceElement) } generateImportStatement(PARCELABLE_PACKAGE) generateExtraMethods(targetPsiClass) }
Implement android.os.Parcelable interface