Grammar-Kit
Grammar-Kit copied to clipboard
psiImplUtilClass method matching fails for methods w/ generic method parameters
The following, unfortunately does not get matched:
@JvmStatic @Override fun <TElement : PsiNamedElement>
setName( element: TElement, @NonNls name: String ): TElement
{
// ...
}
Only a lesser implementation like the following will get matched:
@JvmStatic @Override fun
setName( element: PsiNamedElement, @NonNls name: String ): PsiNamedElement
{
// ...
}
..So one must instead create a new mixin class for every class that wants to implement common generic methods.
(Kotlin code)