Replace getEntries with hardcoded PsiMethod in LC decompiled declaration

This adds NotNull annotation.

^KTIJ-23530 Fixed
This commit is contained in:
Roman Efremov
2022-12-21 20:04:30 +01:00
committed by Space Team
parent cbb20ce2b8
commit 25f65aff3a
3 changed files with 16 additions and 17 deletions
@@ -24,4 +24,13 @@ fun isSyntheticValuesOrValueOfMethod(method: PsiMethod): Boolean {
}
return false
}
}
fun isGetEntriesMethod(method: PsiMethod): Boolean {
return with(method) {
name == "getEntries" &&
parameterList.parametersCount == 0 &&
hasModifierProperty(PsiModifier.PUBLIC) &&
hasModifierProperty(PsiModifier.STATIC)
}
}