boolean (@NotNull Transferable t, @Nullable Editor editor) { if (editor == null) return false; final VirtualFile file = getDroppedFile(t); if (file == null) return false; final FileType type = file.getFileType(); return isImage(type) || isCSS(type) || isJS(type); }