@Override
			public void visitSource(String source, String debug) {
				if (source == null || source.isBlank() || !SOURCE_NAME_PATTERN.matches(source))
					return;
				String name = initialClassState.getName();
				String sourceName = source.substring(0, Math.max(source.lastIndexOf(".java"), source.lastIndexOf(".kt")));
				String packageName = initialClassState.getPackageName();
				String restoredName = packageName == null ? sourceName : packageName + '/' + sourceName;
				context.getMappings().addClass(name, restoredName);
			}
A transformer that creates mappings to rename obfuscated classes based on any remaining {@code SourceFile} attribute.

@author Matt Coley
recaf-core/src/main/java/software/coley/recaf/services/deobfuscation/transform/generic/SourceNameRestorationTransformer.java