code: public void addSharedFunction(ISource source) {
  		String fileName = source instanceof FileSource ? ((FileSource)source).getFileName() : null;
  		doAddSharedFunction(source, fileName);
  	}
docs: Add shared function by ISource