code: public static Version fromPluginProperties(Class<?> pluginClass, String path, String propertyName, Version defaultVersion) {
          return fromClasspathProperties(pluginClass, path, propertyName, null, null, defaultVersion);
      }
docs: Try to read the version from the {@literal graylog-plugin.properties} file included in a plugin.
  
  @param pluginClass     Class where the class loader should be obtained from.
  @param path            Path of the properties file on the classpath which contains the version information.
  @param propertyName    The name of the property to read as project version ("major.minor.patch-preReleaseVersion").
  @param defaultVersion  The {@link Version} to return if reading the information from the properties files failed.