@ SuppressWarnings ( "static-method" ) protected List < JvmTypeParameter > getTypeParametersFor ( XtendTypeDeclaration type ) { if ( type instanceof XtendClass ) { return ( ( XtendClass ) type ) . getTypeParameters ( ) ; } if ( type instanceof XtendInterface ) { return ( ( XtendInterface ) type ) . getTypeParameters ( ) ; } return Collections . emptyList ( ) ; }
Replies the type parameters for the given type .