public JvmConstructor getJvmConstructor(IMethod constructor, XtendTypeDeclaration context)
			throws JavaModelException {
		if (constructor.isConstructor()) {
			final JvmType type = this.typeReferences.findDeclaredType(
					constructor.getDeclaringType().getFullyQualifiedName(),
					context);
			if (type instanceof JvmDeclaredType) {
				final JvmDeclaredType declaredType = (JvmDeclaredType) type;
				final ActionParameterTypes jdtSignature = this.actionPrototypeProvider.createParameterTypes(
						Flags.isVarargs(constructor.getFlags()),
						getFormalParameterProvider(constructor));
				for (final JvmConstructor jvmConstructor : declaredType.getDeclaredConstructors()) {
					final ActionParameterTypes jvmSignature = this.actionPrototypeProvider.createParameterTypesFromJvmModel(
							jvmConstructor.isVarArgs(),
							jvmConstructor.getParameters());
					if (jvmSignature.equals(jdtSignature)) {
						return jvmConstructor;
					}
				}
			}
		}
		return null;
	}
public JvmConstructor getJvmConstructor ( IMethod constructor , XtendTypeDeclaration context ) throws JavaModelException { if ( constructor . isConstructor ( ) ) { final JvmType type = this . typeReferences . findDeclaredType ( constructor . getDeclaringType ( ) . getFullyQualifiedName ( ) , context ) ; if ( type instanceof JvmDeclaredType ) { final JvmDeclaredType declaredType = ( JvmDeclaredType ) type ; final ActionParameterTypes jdtSignature = this . actionPrototypeProvider . createParameterTypes ( Flags . isVarargs ( constructor . getFlags ( ) ) , getFormalParameterProvider ( constructor ) ) ; for ( final JvmConstructor jvmConstructor : declaredType . getDeclaredConstructors ( ) ) { final ActionParameterTypes jvmSignature = this . actionPrototypeProvider . createParameterTypesFromJvmModel ( jvmConstructor . isVarArgs ( ) , jvmConstructor . getParameters ( ) ) ; if ( jvmSignature . equals ( jdtSignature ) ) { return jvmConstructor ; } } } } return null ; }
Create the JvmConstructor for the given JDT constructor.

@param constructor the JDT constructor.
@param context the context of the constructor.
@return the JvmConstructor
@throws JavaModelException if the Java model is invalid.