diff --git a/src/main/java/org/jetbrains/plugins/spotbugs/common/util/IdeaUtilImpl.java b/src/main/java/org/jetbrains/plugins/spotbugs/common/util/IdeaUtilImpl.java index 5aa748ea..1878fe3d 100644 --- a/src/main/java/org/jetbrains/plugins/spotbugs/common/util/IdeaUtilImpl.java +++ b/src/main/java/org/jetbrains/plugins/spotbugs/common/util/IdeaUtilImpl.java @@ -63,7 +63,7 @@ public final class IdeaUtilImpl { private static final Set SUPPORTED_FILE_TYPES_EXT = new THashSet<>(Arrays - .asList("java", "scala", "groovy", "gradle", "aj")); + .asList("java", "scala", "groovy", "gradle", "aj","kt")); public static final Set SUPPORTED_FILE_TYPES; static { @@ -82,6 +82,10 @@ public final class IdeaUtilImpl { if (!(aspectJ instanceof UnknownFileType)) { supported.add(aspectJ); } + final FileType kotlin = FileTypeManager.getInstance().getFileTypeByExtension("KT"); + if (!(kotlin instanceof UnknownFileType)) { + supported.add(kotlin); + } SUPPORTED_FILE_TYPES = supported; } @@ -102,6 +106,10 @@ public final class IdeaUtilImpl { if (aspectJ != null) { supported.add(aspectJ); } + final Language kotlin = Language.findLanguageByID("Kotlin"); + if (kotlin != null) { + supported.add(kotlin); + } SUPPORTED_LANGUAGES = supported; }