code: private String getTextAreaMimeType(final String[] mimeTypes) {
          if (mimeTypes == null) {
              return null;
          }
  
          List<Field> fields = Arrays.asList(SyntaxConstants.class.getFields());
          fields = CollectionUtils.filter(fields, f -> {
              if (f.getName().startsWith("SYNTAX_STYLE_")) {
                  if (f.getType() == String.class) {
                      final int modifiers = f.getModifiers();
                      final boolean accessible = f.isAccessible() || Modifier.isPublic(modifiers);
                      final boolean isStatic = Modifier.isStatic(modifiers);
                      return accessible && isStatic;
                  }
              }
              return false;
          });
          final List<String> acceptedMimeTypes = CollectionUtils.map(fields, f -> {
              try {
                  return (String) f.get(null);
              } catch (final Exception e) {
                  return null;
              }
          });
  
          for (final String mimeType : mimeTypes) {
              if (acceptedMimeTypes.contains(mimeType)) {
                  return mimeType;
              }
          }
  
          return null;
      }
docs: Finds a mimetype that is supported by the {@link RSyntaxTextArea}. These
  are defined in the {@link SyntaxConstants} class.
  
  @param mimeTypes
  @return