Invert condition

GitOrigin-RevId: f5d63832832eedd280ddf4c66dbca38b1053f854
This commit is contained in:
Alexander Zolotov
2019-08-01 22:02:21 +03:00
committed by intellij-monorepo-bot
parent e6b1ab6572
commit 26ad7df525
@@ -708,7 +708,7 @@ public class FileTypeManagerImpl extends FileTypeManagerEx implements Persistent
@NotNull
public FileType getFileTypeByFile(@NotNull VirtualFile file, @Nullable byte[] content) {
FileType fileType = getByFile(file);
if ((fileType == null || fileType instanceof PlainTextLikeFileType) && file instanceof StubVirtualFile) {
if ((fileType == null || fileType instanceof PlainTextLikeFileType) && !(file instanceof StubVirtualFile)) {
return getOrDetectFromContent(file, content);
}
return ObjectUtils.notNull(fileType, UnknownFileType.INSTANCE);