private void fillBasic(BasicModel model, CtNamedElement namedElement) {

    String simpleName = namedElement.getSimpleName();
    String docComment = namedElement.getDocComment();

    model.setName(simpleName);
    model.setDocumentation(docComment);
    if (namedElement instanceof CtModifiable) {
      CtModifiable ctModifiable = (CtModifiable) namedElement;
      Set<ModifierKind> modifiers = ctModifiable.getModifiers();
      for (ModifierKind mod : modifiers) {
        if (mod == ModifierKind.STATIC) {
          model.setStatic(true);
        }
        if (mod == ModifierKind.PUBLIC) {
          model.setPublic(true);
        }
      }
    }

    List<CtAnnotation<? extends Annotation>> annotations = namedElement.getAnnotations();
    for (CtAnnotation<? extends Annotation> a : annotations) {
      IAnnotationModel annotationModel = processAnnotation(a);
      model.addAnnotation(annotationModel);
    }
  }