LPS-44460 Simplify, isMatchingFile() implies !isJarFile(), use methods rather than explicit file checks
LPS-44460 Account for hooks that are also layout templates
LPS-44460 Account for themes and layout templates that are also web plugins
LPS-44460 Account for rails-like and php portlets that contain hooks
LPS-44460 Account for portlets that are also layout templates, themes, or web plugins