GrTypeDefinitionStub (IStubElementType<?, ?> elementType, GrTypeDefinition typeDefinition, StubElement<?> parentStub) { final byte flags = GrTypeDefinitionStub.buildFlags(typeDefinition); return new GrTypeDefinitionStub( parentStub, typeDefinition.getName(), GrStubUtils.getBaseClassName(typeDefinition), elementType, typeDefinition.getQualifiedName(), GrStubUtils.getAnnotationNames(typeDefinition), flags ); }