boolean (String typeImage, @NonNls String typeImage2, boolean ignoreCase) { if (typeImage == null || typeImage2 == null) return Objects.equals(typeImage, typeImage2); final boolean endsWith = ignoreCase ? StringUtil.endsWithIgnoreCase(typeImage2, typeImage) : typeImage2.endsWith(typeImage); return endsWith && ( typeImage.length() == typeImage2.length() || typeImage2.charAt(typeImage2.length()-typeImage.length() - 1)=='.' // package separator ); }